osx - How to batch move folders up one sub-directory on Mac? -
i have large music library (>20000 songs) trying move mac pc. individual files comprise library collected on mac on long period of time. extracted compressed archives, e.g. .zip or .rar. unfortunately, unpacker program used extract these files placed them newly created folder before extraction. because these archives zipped folders, have bunch of files inside nested redundant directories.
for example, let's extracted archive named abcdwxyz.zip.
this archive compressed version of folder abcdwxyz, inside files track 1, track 2, etc. however, extraction program used first created new folder named abcdwxyz , proceeded extract contents of archive folder, resulting in several thousand pathnames this:
itunes/abcdwxyz/abcdwxyz/track 1.mp3 itunes/abcdwxyz/abcdwxyz/track 2.mp3 itunes/abcdwxyz/abcdwxyz/track 3.mp3 itunes/abcdwxyz/abcdwxyz/track 4.mp3 itunes/abcdwxyz/abcdwxyz/track 5.mp3 itunes/qwerty/qwerty/track 1.mp3 itunes/qwerty/qwerty/track 2.mp3 itunes/qwerty/qwerty/track 3.mp3 itunes/qwerty/qwerty/track 4.mp3
is there way batch move of these doubly nested folders 1 directory? after executing batch move, resulting file architecture this:
itunes/abcdwxyz/track 1.mp3 itunes/abcdwxyz/track 2.mp3 itunes/abcdwxyz/track 3.mp3 itunes/abcdwxyz/track 4.mp3 itunes/abcdwxyz/track 5.mp3 itunes/qwerty/track 1.mp3 itunes/qwerty/track 2.mp3 itunes/qwerty/track 3.mp3 itunes/qwerty/track 4.mp3
some more information files may in answering question:
- all files inside 1 folder (namely, itunes).
- the names of redundant folders not identical in every case (this because shorten name of archive before unzipping, resulting in /itunes/yui/yuiop/track 1.mp3), in majority of cases identical. doesn't affect solution of problem.
- i terribly illiterate @ command line , appreciate if proposed solutions little bit more "patronizing" usual. explain 5, if possible.
thank much.
you open finder , search .mp3 files , drop them itunes window have them reprocessed. might leave few empty folders long you're not ocd that, you'll have music back.
Comments
Post a Comment