diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-09 15:38:42 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-09 15:38:42 +0000 |
commit | 41d0052d19b44474b09b8066838c2479d9788d83 (patch) | |
tree | e691db3cf597e115e4c5fa1c2f447ed11fddb42b /gtk2_ardour/editor_export_audio.cc | |
parent | 8177e85bf915ddba427024423450c9472cf3a490 (diff) |
remove all use of access(2) (this was done a bit stupidly, we could have used g_access)
git-svn-id: svn://localhost/ardour2/branches/3.0@9340 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_export_audio.cc')
-rw-r--r-- | gtk2_ardour/editor_export_audio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc index 7b77f19099..2eff80614e 100644 --- a/gtk2_ardour/editor_export_audio.cc +++ b/gtk2_ardour/editor_export_audio.cc @@ -221,7 +221,7 @@ Editor::write_region (string path, boost::shared_ptr<AudioRegion> region) path = s; - if (::access (path.c_str(), F_OK) != 0) { + if (!Glib::file_test (path, Glib::FILE_TEST_EXISTS)) { break; } } @@ -360,7 +360,7 @@ Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list legalize_for_path(playlist.name()).c_str(), cnt, n); } - if (::access (s, F_OK) != 0) { + if (!Glib::file_test (s, Glib::FILE_TEST_EXISTS)) { break; } } |