aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fs/CheckFile: convert path to UTF-8 for error messageMax Kellermann2015-02-281-6/+11
|
* fs/FileInfo: use GetFileAttributesEx() on WIN32Max Kellermann2015-02-281-1/+49
|
* fs/FileSystem: remove unused WIN32 port of StatFile()Max Kellermann2015-02-281-5/+4
|
* fs/FileInfo: new library providing GetFileInfo()Max Kellermann2015-02-282-8/+114
| | | | Replaces StatFile(), with a portable data object.
* fs/Path: make IsAbsolute() constMax Kellermann2015-02-282-2/+2
|
* fs/FileSystem: use GetFileAttributes() on WIN32 if possibleMax Kellermann2015-02-271-2/+20
|
* fs/FileSystem: merge CheckAccess() into PathExists()Max Kellermann2015-02-271-16/+6
| | | | | PathExists() should better do what CheckAccess() does, and CheckAccess() doesn't do what its name implies.
* fs/DirectoryReader: use FindFirstFile(), FindNextFile() on WIN32Max Kellermann2015-02-261-0/+85
|
* fs/Traits: add constant CURRENT_DIRECTORYMax Kellermann2015-02-253-2/+7
|
* fs/AllocatedPath: add nullptr_t constructorMax Kellermann2015-02-251-1/+3
|
* fs/{Allocated,}Path,Charset: use PathTraitsFS typedefsMax Kellermann2015-02-256-21/+19
|
* fs/FileSystem: remove unused FOpenModesMax Kellermann2015-02-251-20/+0
|
* fs/io/File{Reader,OutputStream}: convert path to UTF-8 for error messageMax Kellermann2015-02-252-7/+18
|
* fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTINGMax Kellermann2015-02-101-1/+1
| | | | | Fixes yet another breakage of creating the database+state file on Windows.
* fs/Charset: convert #ifdef to regular "if"Max Kellermann2015-02-091-3/+5
|
* fs/Charset: change FixSeparators() API to use std::string&&Max Kellermann2015-02-081-11/+6
|
* Merge tag 'v0.19.9'Max Kellermann2015-02-061-0/+2
|\
| * fs/io/FileOutputStream: don't auto-delete file on WIN32Max Kellermann2015-02-061-0/+2
| | | | | | | | | | | | | | | | | | The file handle is never reset to INVALID_HANDLE_VALUE, and thus the destructor will assume the operation shall be cancelled and will delete the temporary file. This was a major breakage for saving the database file and the state file.
* | fs/io/BufferedReader: count line numbersMax Kellermann2015-01-212-2/+12
| | | | | | | | Replaces the dirty code in config/ConfigFile.cxx.
* | config/Option: convert to strictly-typed enumMax Kellermann2015-01-211-1/+1
| |
* | fs/io/FileOutputStream: add static method Create()Max Kellermann2015-01-142-0/+13
| |
* | fs/AllocatedPath: add operator==Max Kellermann2015-01-131-0/+10
| |
* | fs/io/FileOutputStream: use O_TMPFILE if availableMax Kellermann2015-01-062-7/+67
| | | | | | | | | | | | The Linux feature allows writing new files to an invisible file, and then replace the old file. This preserves the old file if we get interrupted by some event.
* | fs/io/File{Reader,OutputStream}: use OpenFile()Max Kellermann2015-01-052-8/+7
| |
* | Copyright year 2015Max Kellermann2015-01-0142-42/+42
| |
* | Merge branch 'v0.19.x'Max Kellermann2014-12-263-0/+28
|\|
| * fs/Traits, ...: work around -Wtautological-pointer-compareMax Kellermann2014-12-261-0/+16
| | | | | | | | New in clang 3.6.
| * Merge branch 'v0.18.x' into v0.19.xMax Kellermann2014-12-262-0/+12
| |\
| | * util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compareMax Kellermann2014-12-262-0/+12
| | | | | | | | | | | | New in clang 3.6.
* | | fs/Path: add methods GetBase() and GetDirectoryName()Max Kellermann2014-12-022-0/+46
| | |
* | | lib/icu/Converter: add ICU-based backendMax Kellermann2014-12-011-1/+1
| | |
* | | fs/Config: add HAVE_GLIB checkMax Kellermann2014-11-301-1/+1
| | |
* | | fs/Config: swap #if/#elseMax Kellermann2014-11-301-7/+7
| | |
* | | fs/Charset: move code to wrapper class IcuConverterMax Kellermann2014-11-301-64/+13
| | | | | | | | | | | | Prepare for a ICU-based backend without GLib.
* | | fs/Charset: return std::string from PathFromUTF8()Max Kellermann2014-11-304-31/+9
| | | | | | | | | | | | | | | Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
* | | fs/Charset: use macro HAVE_FS_CHARSET internallyMax Kellermann2014-11-301-4/+4
| | |
* | | fs/Charset: add DeinitFSCharset()Max Kellermann2014-11-294-0/+19
| | |
* | | fs/Charset: add macro HAVE_FS_CHARSETMax Kellermann2014-11-294-3/+7
| | |
* | | fs/Charset: return Error on SetFSCharset() failureMax Kellermann2014-11-294-16/+33
| | | | | | | | | | | | Don't abort the process, let the caller decide instead.
* | | fs/Config: remove bogus WIN32 checkMax Kellermann2014-11-291-1/+1
| | |
* | | Compiler.h: exclude clang from GCC_CHECK_VERSION()Max Kellermann2014-11-281-1/+1
| | |
* | | configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann2014-11-212-4/+4
|/ / | | | | | | Simplify the definition of many build options.
* | Merge tag 'v0.18.18' into v0.19.xMax Kellermann2014-11-181-1/+5
|\|
| * Construct a Null AllocatedPath if the filename conversion into UTF8 failedFlorent Le Coz2014-11-111-1/+5
| |
* | fs/Charset: work around clang's -Wunused-const-variableMax Kellermann2014-10-251-1/+2
| | | | | | | | MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
* | fs/Traits: use value_typeMax Kellermann2014-10-101-4/+4
| |
* | fs/AllocatedPath: add method Steal()Max Kellermann2014-09-281-0/+8
| |
* | fs/AllocatedPath: API documentation grammar fixesMax Kellermann2014-09-281-5/+5
| |
* | *: add missing Compiler.h includesMax Kellermann2014-08-307-0/+7
| | | | | | | | Necessary for "final" on gcc 4.6.
* | fs/io/TextFile: add method Check()Max Kellermann2014-08-112-0/+16
| |