summaryrefslogtreecommitdiff
path: root/libs/ardour/file_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r--libs/ardour/file_source.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc
index ae7fbdc38c..bf68e2ec15 100644
--- a/libs/ardour/file_source.cc
+++ b/libs/ardour/file_source.cc
@@ -537,6 +537,18 @@ FileSource::set_within_session_from_path (const std::string& path)
_within_session = _session.path_is_within_session (path);
}
+bool
+FileSource::is_stub_path (const std::string& path)
+{
+ return path.find (stub_dir_name) != string::npos;
+}
+
+bool
+FileSource::is_stub () const
+{
+ return is_stub_path (_path);
+}
+
int
FileSource::unstubify ()
{