User Tag List

Results 1 to 9 of 9

Thread: Coping entire directories?

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Coping entire directories?

    Hello,

    Is there an object that can copy an entire directory, including all sub-directories and all files within those sub-directories?

    The File Object allows coping of files, but not directories.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Have you tried the File-Folder object by Sphax? Cannot remember if it can do that easily, though. You get it using the ExtensionView Downloader.

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I had a look and it only allows copying files I'm afraid.

    Any other suggestions?

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    How about the DirectoryPacker Pack Directory then > Unpack Directory ?!
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    iOSC's Avatar
    Join Date
    Mar 2012
    Location
    Toronto, Canada
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes the dannyC way is the only one to copy all subfiles and subdirectories.

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I managed to copy an entire directory a different way today in a project I am working on.

    1. Load the file names into a list with the Load Files List function of the List Object.
    2. Then, using the File Object, create a new folder wherever you want with whatever name you want.
    3. Then run a loop to copy each file (with the File Object) one a time based on their line number in the List Object compared to the loop index.

    This does not work for sub directories, but I didn't need it to.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Good you got it sorted out. Btw, you know you can loop through files and folders in a directory with the File Folder object, right?

  8. #8
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Oh really? No I didn't. I'll look into it. Thanks for the help Popcorn.

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Generally, if an object doesn't support functionality, that's because the API doesn't. If you were writing in C++, you'd still have to loop through the files/subfolders. This is probably to ensure file-specific permissions are queried.

Similar Threads

  1. list of directories
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th April 2012, 10:14 AM
  2. ftp object : How can you view directories?
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th November 2008, 03:55 AM
  3. Copy files and directories
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th April 2008, 10:16 PM
  4. Global cutting, coping and pasting
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th December 2007, 09:27 PM
  5. Which object to use to select Directories?
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th October 2006, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •