diff --git a/source/net/sourceforge/filebot/ui/transfer/LazyTextFileTransferable.java b/source/net/sourceforge/filebot/ui/transfer/LazyTextFileTransferable.java index 577ca620..9b2294b7 100644 --- a/source/net/sourceforge/filebot/ui/transfer/LazyTextFileTransferable.java +++ b/source/net/sourceforge/filebot/ui/transfer/LazyTextFileTransferable.java @@ -55,7 +55,7 @@ public class LazyTextFileTransferable implements Transferable { String validFileName = FileBotUtil.validateFileName(defaultFileName); // create new temporary file in TEMP/APP_NAME [UUID]/dnd - File temporaryFile = TemporaryFolder.getFolder(FileBotUtil.getApplicationName().toLowerCase()).createFolder("dnd").createFile(validFileName); + File temporaryFile = TemporaryFolder.getFolder(FileBotUtil.getApplicationName().toLowerCase()).subFolder("dnd").createFile(validFileName); // write text to file FileChannel fileChannel = new FileOutputStream(temporaryFile).getChannel(); diff --git a/source/net/sourceforge/tuned/TemporaryFolder.java b/source/net/sourceforge/tuned/TemporaryFolder.java index 7dd38666..d504ad25 100644 --- a/source/net/sourceforge/tuned/TemporaryFolder.java +++ b/source/net/sourceforge/tuned/TemporaryFolder.java @@ -119,7 +119,7 @@ public final class TemporaryFolder { } - public TemporaryFolder createFolder(String name) { + public TemporaryFolder subFolder(String name) { return new TemporaryFolder(new File(getFolder(), name)); }