mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-22 17:26:33 +00:00
Various small fixes
This commit is contained in:
@@ -268,7 +268,7 @@ public abstract class BaseCompressAction implements BrowserAction, BranchAction
|
||||
|
||||
@Override
|
||||
protected void create(String fileName, OpenFileSystemModel model, List<BrowserEntry> entries) {
|
||||
var tar = CommandBuilder.of().add("tar", "-c", "-v").addIf(gz, "-z").add("-f").addFile(fileName);
|
||||
var tar = CommandBuilder.of().add("tar", "-c").addIf(gz, "-z").add("-f").addFile(fileName);
|
||||
var base = new FilePath(model.getCurrentDirectory().getPath());
|
||||
|
||||
if (directory) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class BaseUntarAction implements ApplicationPathAction, LeafAction {
|
||||
if (toDirectory) {
|
||||
c.add("-C").addFile(target);
|
||||
}
|
||||
c.add("-xv").addIf(gz, "-z").add("-f");
|
||||
c.add("-x").addIf(gz, "-z").add("-f");
|
||||
c.addFile(entry.getRawFileEntry().getPath());
|
||||
if (toDirectory) {
|
||||
model.getFileSystem().mkdirs(target);
|
||||
|
||||
Reference in New Issue
Block a user