files::delete function - Printable Version +- Hot Door CORE Forum (http://hotdoorcore.com/forum) +-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1) +--- Forum: Feature requests (http://hotdoorcore.com/forum/forumdisplay.php?fid=7) +--- Thread: files::delete function (/showthread.php?tid=124) |
files::delete function - Rick Johnson - 04-06-2017 I have a high-priority plugin in progress that involves some temporary file shuffling on a networked (shared) server. The Files functions are great and I'm able to create a file on a server, but moving it to the trash does nothing there. Would it be difficult to add Delete to that group of functions? I'd really appreciate it. RE: files::delete function - garrett - 04-06-2017 While I'm not sure how well it will work on a network drive, you could use the stdlib "remove()" function to delete the file immediately. We only provided a function to move files to the trash/recycle bin because platform code is necessary to do so, but "remove()" is part of C/C++ already. See http://www.cplusplus.com/reference/cstdio/remove/ RE: files::delete function - Rick Johnson - 04-08-2017 Thanks, Garrett, this will work perfectly! |