Hot Door CORE Forum

Full Version: files::delete function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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. Smile
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/
Thanks, Garrett, this will work perfectly!