Skip to content

Commit

Permalink
Convert FilteredFileReader to use FileSpec
Browse files Browse the repository at this point in the history
Summary: FilteredFileReader and its Meta-only relative, FilteredVRSFileReader, are converted to use FileSpec instead of working only with a string path. This makes a number of operations less awkward, but more importantly, it makes working with file variations easier (further diffs).

Reviewed By: kiminoue7

Differential Revision: D45381009

fbshipit-source-id: f829b69a4391578962b23d59bd597eded374582f
  • Loading branch information
Georges Berenger authored and facebook-github-bot committed Apr 28, 2023
1 parent 136071a commit 13788a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/experimental/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int main(int argc, const char* argv[]) {
vrs::utils::FilteredFileReader filteredReader;
// Initialize VRS Reader and filters
filteredReader.setSource(vrsPathIn);
filteredReader.reader.openFile(filteredReader.path);
filteredReader.openFile();
filteredReader.applyFilters({});

// Configure Copy Filter and initialize the copy
Expand Down

0 comments on commit 13788a9

Please sign in to comment.