# # patch "file_io.cc" # from [442fc17a140ef95f024c4aa58a22aa4a924a3cb8] # to [fdddd0679bf078928895c065c8c8b89446f2109a] # # patch "file_io.hh" # from [5712c71aa04e18828ae63e33ed0e0030d4d40e8d] # to [4669a23f6108b4bd226fa27596dde91e4636b484] # ======================================================================== --- file_io.cc 442fc17a140ef95f024c4aa58a22aa4a924a3cb8 +++ file_io.cc fdddd0679bf078928895c065c8c8b89446f2109a @@ -706,7 +706,21 @@ walk_tree_recursive(fs::current_path(), fs::path(), walker); } +// from anywhere, with native path +void +walk_tree_absolute(fs::path const & path, + tree_walker & walker) +{ + if (! fs::is_directory(path)) + walker.visit_file(file_path(path.string())); + else + { + // we likely do not want the localization here + walk_tree_recursive(path, "", walker); + } +} + #ifdef BUILD_UNIT_TESTS #include "unit_tests.hh" ======================================================================== --- file_io.hh 5712c71aa04e18828ae63e33ed0e0030d4d40e8d +++ file_io.hh 4669a23f6108b4bd226fa27596dde91e4636b484 @@ -123,6 +123,11 @@ tree_walker & walker, bool require_existing_path = true); +// from anywhere, with native path +void +walk_tree_absolute(fs::path const & path, + tree_walker & walker); + #endif // __FILE_IO_H__