Skip to content

Commit

Permalink
Fix order of the directory separator when download an image
Browse files Browse the repository at this point in the history
Ensure the internal repository path is applied after the fileset
separator so that the internal structure is preserved and the data
can be read by Bio-Formats
  • Loading branch information
sbesson committed Aug 20, 2024
1 parent 62d4ba9 commit 33dcdb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ List<File> downloadImage(SecurityContext context, String targetPath,
for (FilesetEntry fse: fs.copyUsedFiles()) {
OriginalFile of = fse.getOriginalFile();
String ofDir = of.getPath().getValue().replace(repoPath, "");
File outDir = new File(targetPath+File.separator+ofDir+File.separator+fs_dir);
File outDir = new File(targetPath+File.separator+fs_dir+File.separator+ofDir);
outDir.mkdirs();
File saved = saveOriginalFile(context, of, outDir);
if (saved != null)
Expand Down

0 comments on commit 33dcdb9

Please sign in to comment.