* renamed method name
This commit is contained in:
parent
e6df0141c7
commit
8cb277252b
|
@ -55,7 +55,7 @@ public class LazyTextFileTransferable implements Transferable {
|
||||||
String validFileName = FileBotUtil.validateFileName(defaultFileName);
|
String validFileName = FileBotUtil.validateFileName(defaultFileName);
|
||||||
|
|
||||||
// create new temporary file in TEMP/APP_NAME [UUID]/dnd
|
// 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
|
// write text to file
|
||||||
FileChannel fileChannel = new FileOutputStream(temporaryFile).getChannel();
|
FileChannel fileChannel = new FileOutputStream(temporaryFile).getChannel();
|
||||||
|
|
|
@ -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));
|
return new TemporaryFolder(new File(getFolder(), name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue