diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 18:09:39 +0100 |
commit | feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd (patch) | |
tree | 8127b30bc339eae03226f3e97ea8ac99f62587b3 /src/UpdateIO.cxx | |
parent | eb8922f3468fe664211911c49077a4e3442b7703 (diff) | |
download | mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.tar.gz mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.tar.xz mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.zip |
ConfigFile, CommandLine: use the Path class
Diffstat (limited to '')
-rw-r--r-- | src/UpdateIO.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/UpdateIO.cxx b/src/UpdateIO.cxx index eca5688a1..bd5fef69c 100644 --- a/src/UpdateIO.cxx +++ b/src/UpdateIO.cxx @@ -22,7 +22,7 @@ #include "Directory.hxx" #include "Mapper.hxx" #include "fs/Path.hxx" -#include "glib_compat.h" +#include "fs/FileSystem.hxx" #include <glib.h> @@ -68,12 +68,10 @@ directory_exists(const Directory *directory) /* invalid path: cannot exist */ return false; - GFileTest test = directory->device == DEVICE_INARCHIVE || + return directory->device == DEVICE_INARCHIVE || directory->device == DEVICE_CONTAINER - ? G_FILE_TEST_IS_REGULAR - : G_FILE_TEST_IS_DIR; - - return g_file_test(path_fs.c_str(), test); + ? FileExists(path_fs) + : DirectoryExists(path_fs); } bool |