Copying Files
-
I'm curious why File.delete is allowed, but File.move and File.copy aren't supported?
-
@jim said:
I'm curious why File.delete is allowed, but File.move and File.copy aren't supported?
Seems that someone never go around to making them in the Ruby 'base-build'. However here's a script (ftools.rb) to add to your Plugins folder - it adds File.copy .move .mkdirs .compare etc...
If you use the methods remember that others might not have ftools.rb if you distribute your script...
-
I see, the methods listed in the File class are actually defined in the ftools.rb file. Also, the docs recommend using FileUtils.rb over ftools.rb.
Thanks. I was toying with the idea of cleaning up .skb and AutoSave files from the the user's model folder.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement