Skip to content
Snippets Groups Projects
Commit eac0c8b7 authored by Robert Butora's avatar Robert Butora
Browse files

mcutout zip files without dirs

parent 6a2999f8
No related branches found
No related tags found
No related merge requests found
......@@ -122,17 +122,20 @@ class DatasetsCli implements Datasets
LOGGER.info("cut-id"+ String.valueOf(cut.index) + " -> " + cut.content);
if(cut.contentType == MCutResult.Cut.ContentType.FILENAME)
{
sb.append(" " + cut.content);
Path p = Paths.get(cut.content);
sb.append(" " + p.getFileName().toString());
}
}
final String tgzFileName = settings.fitsPaths.cutouts() + "/mcutout_TIMESTAMP.tar.gz";
String[] cmd = new String[4];
String[] cmd = new String[6];
cmd[0] = "/bin/tar";
cmd[1] = "cfz";
cmd[2] = tgzFileName;
cmd[3] = sb.toString();
cmd[3] = "-C";
cmd[4] = settings.fitsPaths.cutouts();
cmd[5] = sb.toString();
LOGGER.info("CMD: " + String.join(" ",cmd));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment