Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order...
authorTim Mayberry <mojofunk@gmail.com>
Sun, 22 Jun 2014 07:39:06 +0000 (17:39 +1000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 25 Jun 2014 16:40:10 +0000 (12:40 -0400)
libs/pbd/file_utils.cc
libs/pbd/pbd/file_utils.h

index fcc2301ebba28a6fb2d7279aeaaa99320b922faa..c6e1106d77389d5e38cbb5f4836d2d6dacb17fd6 100644 (file)
@@ -177,7 +177,7 @@ get_paths (vector<string>& result,
 }
 
 void
-get_files_in_directory (const std::string& directory_path, vector<string>& result)
+get_files (vector<string>& result, const std::string& directory_path)
 {
        return get_paths (result, directory_path, true, false);
 }
index 04ce654f3419f05f10b0e91f8e38439a3f883847..435b8920a97483db0bf41fb67027e5a4f63a4beb 100644 (file)
@@ -49,15 +49,14 @@ get_paths (std::vector<std::string>& result,
 
 /**
  * Get a list of files in a directory.
- * @note You must join path with result to get the absolute path
- * to the file.
+ * @note paths in result will be absolute.
  *
  * @param path An Absolute path to a directory
- * @param result A vector of filenames.
+ * @param result A vector of paths to files.
  */
 LIBPBD_API void
-get_files_in_directory (const std::string& path,
-                        std::vector<std::string>& result);
+get_files (std::vector<std::string>& result,
+           const std::string& path);
 
 /**
  * Takes a Searchpath and returns all the files contained in the