Skip to content

Commit

Permalink
Fix missing conversion from tstring to path in BitItemsVector indexPaths
Browse files Browse the repository at this point in the history
Close #199
  • Loading branch information
rikyoz committed Mar 26, 2024
1 parent d41afbc commit 2d3afb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bititemsvector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ void BitItemsVector::indexDirectory( const fs::path& inDir,

void BitItemsVector::indexPaths( const std::vector< tstring >& inPaths, IndexingOptions options ) {
const auto symlinkPolicy = options.followSymlinks ? SymlinkPolicy::Follow : SymlinkPolicy::DoNotFollow;
for ( const auto& filePath : inPaths ) {
for ( const auto& inputPath : inPaths ) {
const auto filePath = tstring_to_path( inputPath );
const FilesystemItem item{ filePath,
options.retainFolderStructure ? tstring_to_path( filePath ) : fs::path{},
options.retainFolderStructure ? filePath : fs::path{},
symlinkPolicy };
indexItem( item, options );
}
Expand Down

0 comments on commit 2d3afb7

Please sign in to comment.