Use sys::exists instead of g_file_test in session.cc
authorTim Mayberry <mojofunk@gmail.com>
Tue, 4 Sep 2007 07:15:01 +0000 (07:15 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 4 Sep 2007 07:15:01 +0000 (07:15 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2399 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index c638018ab211aecac22fcba142718a536122dbb3..bdb47415ece616ecdeb4fdacbcb6c4e82b229b96 100644 (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++;
                        } 
                }