|
|
Flatten a directory structure
You can do it in Finder too. ---
~/.sig: not found
Flatten a directory structure
I am curious could something like exporting folders with names like year-month-date into a structure like year/month/data/datahere be possible and how.
---
I have my life with me but my heart is at home.
Flatten a directory structure
A basic approach would be to locate a folder (e.g. use ls if everything is at the same level, or find /the/path -type f if you wanted to find all subdirectories), parse out its name into 3 parts, YYYY, MM, DD (handling anything like having/not having a leading 0 to suit your needs). mkdir -p /wherever/$YYYY/$MM/$DD Then move or copy or link the files into that directory.
Flatten a directory structure
Exactly what I've done many times. I think this has something to do with Finder, by default as far as I can remember, not searching the current directory and instead searching the entire mac. That setting is found in Finder Preferences > Advanced > "When performing a search". I always keep it to "Search the current folder" and when that is set just searching in any Finder window searches that folder which then makes it simple to search for all files. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|