mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix transfer move^
This commit is contained in:
parent
5a0e12aa13
commit
94b5673565
1 changed files with 5 additions and 1 deletions
|
@ -166,7 +166,11 @@ public class BrowserTransferModel {
|
||||||
if (Files.exists(target) && Files.isDirectory(target)) {
|
if (Files.exists(target) && Files.isDirectory(target)) {
|
||||||
FileUtils.deleteDirectory(target.toFile());
|
FileUtils.deleteDirectory(target.toFile());
|
||||||
}
|
}
|
||||||
FileUtils.moveDirectory(file.toFile(),target.toFile());
|
if (Files.isDirectory(file)) {
|
||||||
|
FileUtils.moveDirectory(file.toFile(), target.toFile());
|
||||||
|
} else {
|
||||||
|
FileUtils.moveFile(file.toFile(), target.toFile());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
DesktopHelper.browseFileInDirectory(downloads.resolve(files.getFirst().getFileName()));
|
DesktopHelper.browseFileInDirectory(downloads.resolve(files.getFirst().getFileName()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue