From 04434f2b886dd64b858d154d3c60f7e7846037af Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 22 Jun 2014 17:39:06 +1000 Subject: [PATCH] Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order and fix docs --- libs/pbd/file_utils.cc | 2 +- libs/pbd/pbd/file_utils.h | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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 -- 2.30.2