💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
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.
Advertisement