Skip to content

Commit

Permalink
Add dataset sample directory (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi authored Aug 4, 2023
1 parent 554516f commit 15caeaf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ public WriteFileToDisk(IDataStoreServerApi dataStoreServerApi, int bufferSize, P
}

private static Path toOutputPath(DataFile dataFile, Path outputDirectory) {
String originalFilePath = dataFile.filePath();
Path outFilePath = outputDirectory.resolve(originalFilePath);
return outFilePath;
Path dataSetDirectory = outputDirectory.resolve(dataFile.dataSet().sampleCode());
return dataSetDirectory.resolve(dataFile.filePath());
}

private AutoClosableDataSetFileDownloadReader toReader(DataFile dataFile) {
Expand Down

0 comments on commit 15caeaf

Please sign in to comment.