Skip to content

Commit

Permalink
Skip inaccessible folders while indexing a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jul 11, 2024
1 parent 6314e51 commit e22db91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/fsindexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void FilesystemIndexer::listDirectoryItems( std::vector< std::unique_ptr< Generi

fs::path basePath = mDirItem.filesystemPath();
std::error_code error;
for ( auto iterator = fs::recursive_directory_iterator{ basePath, error };
for ( auto iterator = fs::recursive_directory_iterator{ basePath, fs::directory_options::skip_permission_denied, error };
iterator != fs::recursive_directory_iterator{};
++iterator ) {
const auto& currentEntry = *iterator;
Expand Down

0 comments on commit e22db91

Please sign in to comment.