From feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2013 17:23:35 +0100 Subject: ConfigFile, CommandLine: use the Path class --- src/UpdateIO.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/UpdateIO.cxx') 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 @@ -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 -- cgit v1.2.3