About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
files::delete function
04-06-2017, 04:05 PM
Post: #1
files::delete function
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
Find all posts by this user
Quote this message in a reply
04-06-2017, 05:16 PM
Post: #2
RE: files::delete function
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/
Find all posts by this user
Quote this message in a reply
04-08-2017, 01:27 PM
Post: #3
RE: files::delete function
Thanks, Garrett, this will work perfectly!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)