I'm not sure if this is a Java or PircBotX related issue.
Every time PircBotX accepts an incoming file transfer, a duplicate /tmp file is created.
All the tmp files are stored with a similar isc*tmp name.
Example;
/tmp/isc6143200777904633217tmp
This is my pseudo code;
public void onIncomingFileTransfer(IncomingFileTransferEvent event) {
File file = new File("/download/somefile");
event.acceptAndTransfer(file);
// do stuff on file
file.delete(); <-- The "/download/somefile" file is properly deleted, but the /tmp file still exists
}
How can I prevent these /tmp files from being written?