diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc index fcc2301ebb..c6e1106d77 100644 --- a/libs/pbd/file_utils.cc +++ b/libs/pbd/file_utils.cc @@ -177,7 +177,7 @@ get_paths (vector& result, } void -get_files_in_directory (const std::string& directory_path, vector& result) +get_files (vector& result, const std::string& directory_path) { return get_paths (result, directory_path, true, false); } diff --git a/libs/pbd/pbd/file_utils.h b/libs/pbd/pbd/file_utils.h index 04ce654f34..435b8920a9 100644 --- a/libs/pbd/pbd/file_utils.h +++ b/libs/pbd/pbd/file_utils.h @@ -49,15 +49,14 @@ get_paths (std::vector& 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& result); +get_files (std::vector& result, + const std::string& path); /** * Takes a Searchpath and returns all the files contained in the