Skip to content

Commit 89e16bc

Browse files
committed
refactor: make the name of the temp file more readable
1 parent 00a715f commit 89e16bc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@
2424
- \> v0.10.5: This shortcut has been removed, but this action can be assigned in `Preferences / Keymap`.
2525
- Open local path selector popup while remote popup is shown, local path selector popup will disappear in a short amount of time.
2626
- Because the remote list will be reloaded after the remote path selector popup became hidden, no solution for this for now...
27-
- `this.project.messageBus.connect(this).subscribe(VirtualFileManager.VFS_CHANGES, ...)` can NOT be disposed successfully.
28-
- This is a bug, been working on this...

src/main/kotlin/net/allape/xftp/XFTPCore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ abstract class XFTPCore(
534534
// .substring(0, remoteFile.name().length() - fileSuffix.length())
535535
// .replaceAll("\\.", "-") + fileSuffix;
536536
// }
537-
val localFile = File.createTempFile("jb-ide-xftp-", formattedFileName)
537+
val localFile = File.createTempFile("jb-ide-xftp-", "-$formattedFileName")
538538
application.executeOnPooledThread {
539539
transfer(localFile, remoteFile, TransferType.DOWNLOAD) {
540540
if (it.result == TransferResult.SUCCESS) {

0 commit comments

Comments
 (0)