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/PlaylistSave.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 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 49e475ee5..1ff6c856b 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -25,6 +25,7 @@ #include "Mapper.hxx" #include "Idle.hxx" #include "fs/Path.hxx" +#include "fs/FileSystem.hxx" extern "C" { #include "uri.h" @@ -76,7 +77,7 @@ spl_save_queue(const char *name_utf8, const struct queue *queue) if (path_fs.IsNull()) return PLAYLIST_RESULT_BAD_NAME; - if (g_file_test(path_fs.c_str(), G_FILE_TEST_EXISTS)) + if (FileExists(path_fs)) return PLAYLIST_RESULT_LIST_EXISTS; FILE *file = fopen(path_fs.c_str(), "w"); |