This commit is contained in:
parent
38f5374e49
commit
0741e307cc
@ -78,8 +78,8 @@ auto get_directory_files(std::string_view path, bool oldest_first,
|
||||
try {
|
||||
struct dirent *de{};
|
||||
while ((de = readdir(root)) != nullptr) {
|
||||
if (de->d_type == DT_DIR) {
|
||||
std::string name{de->d_name};
|
||||
if (de->d_type == DT_DIR) {
|
||||
if (name == "." || name == ".." || not recursive) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user