Urban75 Home About Offline BrixtonBuzz Contact

export directory tree with dates for all folders created. ?

gentlegreen

I hummus, therefore I am ...
Please be kind to me here - I'm sure by now everyone knows about my hoarding and OCD ... and the shit I'm going through trying to escape my life...

So I'm ripping all my CDs - approx 1,000 bought over 20 or 30 years - and after ripping I've been putting the physical disc in plastic sleeves which I'm numbering and packing in 25s and then in bigger bags - 1 per day...
They are not in the best of condition so there are quite a few errors - but I've left it too late so though I give them a wipe before ripping, I don't often polish out scratches and rerip unless the mood takes me...

The crazy notion is that should I ever actually want to find an individual CD in the future to go to town on polishing out scratches, I will be able to do so relatively easily..

I already cocked up on the first 150 CDs by ripping them on my boot drive with limited space and then copying to three spinny drives - forgetting that they would lose the time and date of creation...
Everything about this process is triggering and I already "fear" that there are un-ripped discs in there already ...

So there are maybe two options -

1. do my backups in a way that preserves the date and time stamp.

2. export the directory tree - just the folders with timestamps...

3. export the tree structure and add the dates myself ...

The dates here are wrong because they were already copied from where I ripped them ...

for instance "tree /a /f" gives this :-
|
+---Aphex Twin
| +---Selected Ambient Works 85-92
| | 01 Aphex Twin - Xtal.flac
| | 02 Aphex Twin - Tha.flac
| | 03 Aphex Twin - Pulsewidth.flac
| | 04 Aphex Twin - Ageispolis.flac
| | 05 Aphex Twin - I.flac
| | 06 Aphex Twin - Green Calx.flac
| | 07 Aphex Twin - Heliosphan.flac
| | 08 Aphex Twin - We Are The Music Makers.flac
| | 09 Aphex Twin - Schottkey 7th Path.flac
| | 10 Aphex Twin - Ptolemy.flac
| | 11 Aphex Twin - Hedphelym.flac
| | 12 Aphex Twin - Delphium.flac
| | 13 Aphex Twin - Actium.flac
| | Folder.jpg
| |
| \---Selected Ambient Works, Vol. 2, Disc 1
| 01 Aphex Twin - Cliffs.flac
| 02 Aphex Twin - Radiator.flac
| 03 Aphex Twin - Rhubarb.flac
| 04 Aphex Twin - Hankie.flac
| 05 Aphex Twin - Grass.flac
| 06 Aphex Twin - Mold.flac
| 07 Aphex Twin - Ropes Curtains.flac
| 08 Aphex Twin - Blur.flac
| 09 Aphex Twin - Weathered Stone.flac
| 10 Aphex Twin - Tree.flac
| 11 Aphex Twin - Domino.flac
| 12 Aphex Twin - White Blur 1.flac
| Folder.jpg
|
+---Augustus Pablo
| \---King Tubbys Meets Rockers Uptown
| 01 Augustus Pablo - Keep On Dubbing.flac
| 02 Augustus Pablo - Stop Them Jah.flac
| 03 Augustus Pablo - Young Generation Dub.flac
| 04 Augustus Pablo - Each One Dub.flac
| 05 Augustus Pablo - 555 Dub Street.flac
| 06 Augustus Pablo - Brace's Tower Dub.flac
| 07 Augustus Pablo - King Tubby Meets Rockers Uptown.flac
| 08 Augustus Pablo - Corner Crew Dub.flac
| 09 Augustus Pablo - Say So.flac
| 10 Augustus Pablo - Skanking Dub.flac
| 11 Augustus Pablo - Frozen Dub.flac
| 12 Augustus Pablo - Satta Dub.flac
| Folder.jpg

dir only gives me the first tier of folders ...

Directory of G:\ripspart212thjune

14/06/2023 20:24 <DIR> .
14/06/2023 20:24 <DIR> ..
12/06/2023 12:14 <DIR> Aphex Twin
12/06/2023 12:14 <DIR> Augustus Pablo
12/06/2023 12:14 <DIR> Christopher Hogwood
12/06/2023 12:14 <DIR> Dead Can Dance
12/06/2023 12:15 <DIR> Eat Static
12/06/2023 12:15 <DIR> Eurythmics
12/06/2023 12:15 <DIR> Fugees
12/06/2023 12:15 <DIR> Gotan Project
12/06/2023 12:15 <DIR> Graham Central Station
12/06/2023 12:15 <DIR> Jeff Mills
12/06/2023 12:15 <DIR> John Digweed
12/06/2023 12:16 <DIR> Joni Mitchell
12/06/2023 12:16 <DIR> Keith Jarrett
12/06/2023 12:16 <DIR> Loop Guru
12/06/2023 12:16 <DIR> Miles Corbin
12/06/2023 12:16 <DIR> Miles Davis
 
Last edited:
I'm sure there are command line or gui tools available that would do it and you could certainly string something together in Linux but I'd be tempted to take the output of tree into excel and see if I could quickly filter on only rows contain +- and |\
 
right so how do I define the top level directory as E:\rips ?
Where does the output go ?
Do I just paste that straight into powershell ?
Thanks :)
 
Just paste it into PowerShell ISE and run it. The output just gets displayed on the screen. If you want to capture it in a file you can wrap it in a transcript (or rewrite it to use out-file). If you've just installed PS you might have to change the execution authority to allow it to run unsigned scripts.

cls

cd e:\rips

$dirs = get-childitem -recurse -directory

start-transcript -path .\rips.txt

foreach ($d in $dirs)
{

write-host $d.name $d.creationtime

}

stop-transcript
 
Just paste it into PowerShell ISE and run it. The output just gets displayed on the screen. If you want to capture it in a file you can wrap it in a transcript (or rewrite it to use out-file). If you've just installed PS you might have to change the execution authority to allow it to run unsigned scripts.
Blimey thanks :)

amazing :)



Selected Ambient Works 85-92 14/06/2023 21:02:01
Selected Ambient Works, Vol. 2, Disc 1 14/06/2023 21:02:09
 
Roughly half way through the ripping process - and I can know that because the data imports nicely into a spreadsheet :)
Up to now I've been doing things more by weight and volume :eek:

If I achieve my French dream, you're definitely invited if you fancy a change from your tropical paradise :)
 
Back
Top Bottom