Skip to content

Commit

Permalink
Merge pull request #90 from sbesson/download_fileset_issues89
Browse files Browse the repository at this point in the history
Fix order of the directory separators when downloading an image
  • Loading branch information
jburel authored Sep 2, 2024
2 parents 62d4ba9 + 33dcdb9 commit ec68214
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 ec68214

Please sign in to comment.