mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-24 17:35:39 +00:00
Add way to duplicate files
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user