Use sys::exists instead of g_file_test in session.cc

git-svn-id: svn://localhost/ardour2/trunk@2399 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-09-04 07:15:01 +00:00
parent b821426d4a
commit d767a064b6

View file

@ -2950,7 +2950,7 @@ Session::audio_path_from_name (string name, uint32_t nchan, uint32_t chan, bool
}
}
if (g_file_test (buf, G_FILE_TEST_EXISTS)) {
if (sys::exists(buf)) {
existing++;
}
@ -3145,7 +3145,7 @@ Session::midi_path_from_name (string name)
snprintf (buf, sizeof(buf), "%s-%u.mid", spath.c_str(), cnt);
if (g_file_test (buf, G_FILE_TEST_EXISTS)) {
if (sys::exists (buf)) {
existing++;
}
}