aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-11fs/StandardDirectory: look for cache dir in environment, not user-dirsMantas Mikulėnas1-3/+15
The XDG cache directory is part of the "base directories" spec like $XDG_CONFIG_HOME, not "user directories".
2014-03-01fs/StandardDirectory: add GetUserCacheDir()Max Kellermann2-0/+21
Move code from CreateConfiguredDatabase() and add XDG support. This implements an automatic Linux fallback for the setting "db_file" if none was specified.
2014-03-01java/File: add method ToAbsolutePath() returning AllocatedPathMax Kellermann1-7/+1
2014-03-01Android: obtain music directory from ↵Max Kellermann1-1/+14
Environment.getExternalStoragePublicDirectory()
2014-02-23fs/Charset: use "UTF-8" instead of "utf-8" as the default valueMax Kellermann1-2/+2
The upper-case name seems to be the canonical one.
2014-02-17fs/TextFile: use custom allocation instead of GStringMax Kellermann2-24/+29
2014-02-17fs/Charset: disable if GLib is disabledMax Kellermann3-2/+31
2014-02-07Mapper: move check_directory() to the filesystem libraryMax Kellermann2-0/+96
2014-02-07fs/Traits: add function Relative()Max Kellermann4-23/+61
Move code from Path::RelativeFS() and make it generic.
2014-01-30fs/AllocatedPath: add conversion constructor from PathMax Kellermann1-0/+2
2014-01-30fs/DirectoryReader: GetEntry() returns Path, not AllocatedPathMax Kellermann1-3/+3
Reduce overhead, don't duplicate the string.
2014-01-30fs/AllocatedPath: add Build() overlays with Path argumentsMax Kellermann1-0/+10
2014-01-24Config*: move to config/Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann20-20/+20
2013-12-08fs: implemented standard directories APIDenis Krjuchkov2-0/+358
2013-12-08TextFile: move to fs subsystemDenis Krjuchkov2-0/+138
2013-12-05fs/FileSystem.hxx: don't define CheckAccess() with mode on WindowsDenis Krjuchkov1-8/+2
2013-12-05fs/FileSystem.hxx: add CheckAccess without mode parameterDenis Krjuchkov1-0/+14
2013-12-05fs/Traits.cxx: don't return drive path without trailing separatorDenis Krjuchkov1-0/+4
2013-12-05fs/Traits.hxx: introduce PathTraitsXXX::IsDrive functionDenis Krjuchkov1-2/+16
2013-12-05fs/Charset.cxx: replace \ with / when converting path to UTF-8 on WindowsDenis Krjuchkov1-3/+24
2013-12-05fs/Traits.hxx: add shorter forms of PathTraitsXXX::Build()Denis Krjuchkov1-0/+10
2013-12-05fs/Traits.hxx: add PathTraitsUTF8::GetLength for consistencyDenis Krjuchkov1-0/+5
2013-12-05fs/AllocatedPath.cxx: don't use g_path_get_dirnameDenis Krjuchkov1-1/+1
2013-12-05fs/Traits: implement GetBase/GetParent/Build using templatesDenis Krjuchkov2-22/+88
2013-12-05fs/Traits.cxx: don't return empty string if parent dir is rootDenis Krjuchkov1-3/+5
2013-12-05fs/Traits.hxx: add FindLastSeparator function to PathTraitsXXXDenis Krjuchkov1-0/+19
2013-12-05fs/Traits: improve compatibility between PathTraitsFS and PathTraitsUTF8Denis Krjuchkov2-9/+14
2013-12-05fs/Traits.hxx: add gcc_nonnull_all where applicableDenis Krjuchkov1-3/+3
2013-12-05fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8Denis Krjuchkov7-66/+71
2013-12-03AllocatedPath.hxx: use move constructorDenis Krjuchkov1-1/+1
2013-12-03fs/AllocatedPath: use PathTraits::BuildFSDenis Krjuchkov2-10/+14
2013-12-03fs/Traits.hxx: implement BuildFS() methodDenis Krjuchkov2-0/+35
2013-12-03fs/Traits.hxx: move definition of AllocatedPath::string to PathTraitsDenis Krjuchkov2-2/+2
2013-12-03fs/Traits.hxx: add GetLengthFS()Denis Krjuchkov1-0/+6
There is no GetLengthUTF8() because strlen or std::string::size() could be used instead.
2013-12-03fs/AllocatedPath.hxx: add FromFS(std::string) methodDenis Krjuchkov1-0/+11
2013-12-03fs/Traits.hxx: don't use g_path_is_absoluteDenis Krjuchkov1-9/+7
2013-12-03fs/Traits.hxx: simplify codeDenis Krjuchkov1-7/+3
- Move definition of SEPARATOR_UTF8 out of #ifdef - Remove duplicated check in IsSeparatorUTF8
2013-11-28include cleanup using iwyuMax Kellermann7-16/+0
2013-10-28*: use nullptr instead of NULLMax Kellermann2-7/+7
2013-10-21GetBaseUTF8Max Kellermann2-0/+62
2013-10-21fs/AllocatedPath: don't include glib.hMax Kellermann1-4/+0
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann7-174/+392
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-17fs/Path: move definitions to struct PathTraitsMax Kellermann4-90/+129
2013-10-17fs/Path: include clenaupMax Kellermann1-1/+1
2013-10-17fs/Charset: GetFSCharset() returns "utf-8" by defaultMax Kellermann2-3/+3
If fs_charset is empty, i.e. we're using the default "utf-8", GetFSCharset() should return exactly that instead of an empty std::string.
2013-10-17fs/Charset: default filesystem charset is UTF-8Max Kellermann2-6/+7
Implement a fast path for UTF-8 which leaves fs_charset empty, and don't assign a value to fs_charset if there's no configuration.
2013-10-17fs/Charset: don't allow nullptr argumentsMax Kellermann3-7/+8
2013-10-17fs/Path: move configuration code to Config.cxxMax Kellermann6-132/+271
2013-10-17fs/Path: move path_domain to Domain.hxxMax Kellermann4-5/+50