Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
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