summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/file_utils.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-06-22 17:22:37 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-25 12:40:10 -0400
commit84d190b7cccdb5bbbae8467f97504cf05726b4ae (patch)
tree638ce06e69470539fa35a48b76b2c219ce0be99e /libs/pbd/pbd/file_utils.h
parent26ec4038af0e84e6fe5d648c5dd1b76d19badd1f (diff)
Rename PBD::get_directory_contents to PBD::get_paths
shorter name and change order of parameters to match other functions
Diffstat (limited to 'libs/pbd/pbd/file_utils.h')
-rw-r--r--libs/pbd/pbd/file_utils.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/pbd/pbd/file_utils.h b/libs/pbd/pbd/file_utils.h
index ab42fd2357..04ce654f34 100644
--- a/libs/pbd/pbd/file_utils.h
+++ b/libs/pbd/pbd/file_utils.h
@@ -31,7 +31,8 @@
namespace PBD {
/**
- * Get a contents of directory.
+ * Get a list of path entries in a directory or within a directory tree
+ * if recursing.
* @note paths in result will be absolute
*
* @param path An absolute path to a directory in the filename encoding
@@ -41,10 +42,10 @@ namespace PBD {
* @param recurse Recurse into child directories
*/
LIBPBD_API void
-get_directory_contents (const std::string& path,
- std::vector<std::string>& result,
- bool files_only = true,
- bool recurse = false);
+get_paths (std::vector<std::string>& result,
+ const std::string& directory_path,
+ bool files_only = true,
+ bool recurse = false);
/**
* Get a list of files in a directory.