Skip to content

Commit ae76a71

Browse files
authored
listDir change to of::filesystem::path (#7369)
1 parent f71884f commit ae76a71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/openFrameworks/utils/ofFileUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ void ofDirectory::allowExt(const std::string& extension){
13821382
}
13831383

13841384
//------------------------------------------------------------------------------------------------------------
1385-
std::size_t ofDirectory::listDir(const std::string& directory){
1385+
std::size_t ofDirectory::listDir(const of::filesystem::path & directory){
13861386
open(directory);
13871387
return listDir();
13881388
}

libs/openFrameworks/utils/ofFileUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ class ofDirectory{
10171017
///
10181018
/// \param path directory path
10191019
/// \returns number of paths found
1020-
std::size_t listDir(const std::string& path);
1020+
std::size_t listDir(const of::filesystem::path & path);
10211021

10221022
/// Open and read the contents of the current directory.
10231023
///

0 commit comments

Comments
 (0)