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 2cdfac1 commit 6b35220
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 @@ -44,7 +44,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 6b35220

Please sign in to comment.