/tmp file in event.acceptAndTransfer

11 views
Skip to first unread message

Jenga

unread,
Jun 5, 2016, 11:12:26 AM6/5/16
to pircbotx
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?
Reply all
Reply to author
Forward
0 new messages