mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Add way to duplicate files
This commit is contained in:
parent
60e0b124db
commit
99999eeaec
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ public class BrowserFileTransferOperation {
|
|||
var targetFile = FileNames.join(target.getPath(), FileNames.getFileName(sourceFile));
|
||||
|
||||
if (sourceFile.equals(targetFile)) {
|
||||
return;
|
||||
// Duplicate file by renaming it
|
||||
targetFile = renameFileLoop(target.getFileSystem(), targetFile, source.getKind() == FileKind.DIRECTORY);
|
||||
}
|
||||
|
||||
if (source.getKind() == FileKind.DIRECTORY && target.getFileSystem().directoryExists(targetFile)) {
|
||||
|
|
Loading…
Reference in a new issue