Is there an app that copies folder structure?

Discussion in 'Software' started by Bunford, Mar 25, 2017.

  1. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    I am trying to organise som of my sample drives etc. Does anyone know of an app that will copy a folder structure without copying folder content or subfolders? I know there is an app called TreeCopy but I think that includes all sub folders etc too. I can delete the subfolders if need be, but was just wondering.
     
  2.  
  3. lexeed

    lexeed Platinum Record

    Joined:
    Sep 6, 2015
    Messages:
    321
    Likes Received:
    202
  4. junh1024

    junh1024 Rock Star

    Joined:
    Jul 28, 2011
    Messages:
    1,396
    Likes Received:
    432
  5. Pinkman

    Pinkman Audiosexual

    Joined:
    Apr 22, 2016
    Messages:
    2,093
    Likes Received:
    1,942
    Can't remember if TreeCopy duplicates the subfolders but here's a way to do no subfolders without any additional software
    I've linked a .bat that can recreate the folder structure here.
    Create a folder on your desktop and unpack the .bat file there.

    Hold shift and Right-click the folder containing the folders you want to duplicate and select "Open command window here"
    type: dir /b > file.txt
    You should have a file named file.txt which contains a list of all the folders inside whatever folder you right clicked.
    place the file.txt next to the .bat and run it.

    This isn't complicated. Explaining it is just long-winded

    *I forgot: xcopy command does the same thing but includes the sub-folders.
    in Command Prompt: xcopy source target /t
    replace source with the folder path being duplicated
    replace target with the destination path for duplicated folders
     
    Last edited: Mar 28, 2017
  6. curtified

    curtified Rock Star

    Joined:
    Feb 3, 2015
    Messages:
    627
    Likes Received:
    424
    If ur on a mac. Tidy up will be ur new best friend for sample organization.

    Folders, dupes, file type separation, etc
     
  7. DonCaballero

    DonCaballero Producer

    Joined:
    Feb 6, 2016
    Messages:
    160
    Likes Received:
    90
    Link Shell Extension can likely do what you want. I use it a lot for organizing my sample libraries, and making networked data appear local so my projects find everything ok.
    http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html

    Right-click on any folders or files, select "pick link source", go to the location you want them to appear, right-click, "drop as"-> "symbolic link".
     
    Last edited: Mar 26, 2017
  8. Pinkman

    Pinkman Audiosexual

    Joined:
    Apr 22, 2016
    Messages:
    2,093
    Likes Received:
    1,942
    I didn't know you needed symlinks. The method I gave just makes new folders named like the old ones with no kind of reference to the original.
     
  9. lasteno

    lasteno Platinum Record

    Joined:
    Apr 14, 2013
    Messages:
    437
    Likes Received:
    179
    DiskCatalogMaker
     
  10. fiction

    fiction Audiosexual

    Joined:
    Jun 21, 2011
    Messages:
    1,889
    Likes Received:
    687
    Using Mac Terminal:

    1. Cd to the source folder where your folder structure that you want to replicate resides
    2. find . -type d |sed "s/.*/mkdir \\\"&\\\"/" >makedirs.txt
    3. Cd to the destination folder and copy or move the file "makedirs" there
    4. sh makedirs.txt

    This will re-create the folder structure without any files.

    If you only want to create the first, topmost level of folders:
    find . -type d |awk -F"/" "{ print \$2 }" |sort -u |sed "s/.*/mkdir \\\"&\\\"/" >makedirs.txt
    Then, like above, run "sh makedirs.txt" in the destination folder.

    Open makedirs.txt with a text editor to make sure it does what you want, or to erase or add lines to your liking.
     
    Last edited: Mar 26, 2017
  11. mrmugabi

    mrmugabi Newbie

    Joined:
    Mar 13, 2017
    Messages:
    5
    Likes Received:
    1
    use rsync. If on mac its in the command line. If on windows, install free mobaXterm
     
  12. curtified

    curtified Rock Star

    Joined:
    Feb 3, 2015
    Messages:
    627
    Likes Received:
    424

    Tidy up let's u save symlinks too.
     
  13. ZUK

    ZUK Rock Star

    Joined:
    Aug 24, 2011
    Messages:
    544
    Likes Received:
    331
    Richcopy
     
  14. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    I don't. No idea where the idea of symlinks came from :rofl:
     
  15. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    This nearly worked. Created the file.txt fine with list of directory in there. However, when running the .bat file, it seems to create the directory of folders as I wanted but only takes the first word of each folder name. I assume the .bat needs a minor tweak?
     
  16. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    I do use LinkShellExtension myself to move bulky things to external drives but make them appear on the C: drive.

    However, it won't really work for this. I essentially currently have sample libraries organised into library company folders. I want to essentially put these company folder into genre specific folders. Rather than creating folder by folder, I just wanted to recreate the 'company' folder names and have them blank so I can duplicate into each genre folder, if that makes sense.
     
  17. Pinkman

    Pinkman Audiosexual

    Joined:
    Apr 22, 2016
    Messages:
    2,093
    Likes Received:
    1,942
    Oops. Here.
     
  18. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    This one worked. Fab stuff! Cheers @Pinkman :wink:
     
  19. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    On a similar theme, and rather than start a new thread on it, anybody know of a way to delete folders that have no files or subfolders within them easily without having to go through them one by one?
     
Loading...
Loading...