sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Copying Files

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 560 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jim
      last edited by

      I'm curious why File.delete is allowed, but File.move and File.copy aren't supported?

      Hi

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        @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...


        ftools.rb

        TIG

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          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.

          Hi

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement