mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fix copy paste error
This commit is contained in:
parent
aee414f27d
commit
815787c8a9
2 changed files with 5 additions and 0 deletions
|
@ -200,6 +200,10 @@ public class FileSystemHelper {
|
||||||
var sourceFile = source.getPath();
|
var sourceFile = source.getPath();
|
||||||
var targetFile = FileNames.join(target.getPath(), FileNames.getFileName(sourceFile));
|
var targetFile = FileNames.join(target.getPath(), FileNames.getFileName(sourceFile));
|
||||||
|
|
||||||
|
if (sourceFile.equals(targetFile)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (source.getKind() == FileKind.DIRECTORY && target.getFileSystem().directoryExists(targetFile)) {
|
if (source.getKind() == FileKind.DIRECTORY && target.getFileSystem().directoryExists(targetFile)) {
|
||||||
throw ErrorEvent.unreportable(new IllegalArgumentException("Target directory " + targetFile + " does already exist"));
|
throw ErrorEvent.unreportable(new IllegalArgumentException("Target directory " + targetFile + " does already exist"));
|
||||||
}
|
}
|
||||||
|
|
1
dist/changelogs/1.7.13.md
vendored
1
dist/changelogs/1.7.13.md
vendored
|
@ -19,5 +19,6 @@
|
||||||
|
|
||||||
- Fix some shells not properly setting up the PATH
|
- Fix some shells not properly setting up the PATH
|
||||||
- Fix git vault repository throwing initialization errors when shared with multiple Windows user permissions
|
- Fix git vault repository throwing initialization errors when shared with multiple Windows user permissions
|
||||||
|
- Fix copying and pasting a file into the same directory returning an error
|
||||||
- Fix connections being accidentally listed under scripts category
|
- Fix connections being accidentally listed under scripts category
|
||||||
if they were added while scripts category was selected
|
if they were added while scripts category was selected
|
||||||
|
|
Loading…
Reference in a new issue