A drive of folders within folders. . .into one folder?

Discussion in 'Mac Basics and Help' started by Soundburst, Jan 12, 2015.

  1. Soundburst macrumors 6502a

    Joined:
    Oct 4, 2006
    #1
    Hey guys,

    Is it possible to have the Macintosh take the contents of every folder. . . .and copy it into one folder?

    Ie if I have:

    Folder 1: Horror: (Some files)
    Folder 2: Comedy: (Some files)
    Folder 3: Folder: Cartoon: (Some files)

    . . .

    Is it possible to have the Mac to the end of each folder. . . get the files. . .remove them from the folder and put them all into one big unorganised folder?

    ----------

    I searched the Drive in question for any file containing a '.' and got all of the items inside folders. . .there are 49,000 so i'm getting a spinning beachball trying to drag them into their new folder lol
     
  2. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #2
    cp `find <sourcedir> -type f` <destinationdir>/

    cheers
     
  3. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #3
    I'm not sure what what means?

    I dragged the folder contain all the folders into your sourcedir in Terminal. Is this correct? It won't let me drag it for some reason.
     
  4. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #4
    !!

    no need to drag anything, just type that in terminal replacing <sourcedir> and <destinationdir> with the paths to your folders!

    cheers
     
  5. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #5
    Thanks for your help but I get:

    -bash: /: Is a directory

    When I type the above ?
     
  6. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
  7. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #7
    Aarons-MacBook-Pro:~ Aaron$ cp `find </Volumes/SOUND\ EFFECTS/SOUND\ EFFECTS/ALL\ SFX > -type f` </Volumes/SOUND\ EFFECTS/SFX >/


    SOUND EFFECTS / ALL SFX contains a massive library of folders.

    I want the files of all those to be copied into the 'SFX' folder in the Root of the drive.

    I've probably missed a space or something lol. I appreciate your help!
     
  8. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #8
    drop the placeholders (< and >), sorry about that, old habits :p

    command :

    cp `find /Volumes/SOUND\ EFFECTS/SOUND\ EFFECTS/ALL\ SFX -type f` /Volumes/SOUND\ EFFECTS/SFX/
     
  9. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #9
    "Argument List Too Long".

    To be fair there are 48,000 items so i'll just have to do it bit by bit haha.

    Appreciate you sticking through as far as you did though :)

    Cheers.
     
  10. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #10
    crap :D

    yea, will need to break it into smaller chunks, 48.000 is too much for this quick and dirty approach.

    otherwise a bash script is needed.

    edit: by the way, not sure about HFS+, but having 48k files int the same folder in NTFS (windows) is a sure recipe for headaches.
     
  11. Soundburst thread starter macrumors 6502a

    Joined:
    Oct 4, 2006
    #11
    I know :(:(

    But I have no option. . .AVID can't search for a file. . .say. . 'Wind' in a massive folder structure. It can only search one folder. So I'm stuck with it :(
     

Share This Page