Accidentally moved some files out of Library, how can I work out where they came from so I can put them back?

I inadvertently moved two folders out from somewhere inside /Library (at least I think that’s where they were).

One folder is named FFFFEEEE-DDDD-CCCC-BBBB-AAAA000000F8 and contains about 36 .playlist files that appear to be related to various applications.

The other is named 4y, contains one folder named m1f9tls52fs2gytfbr7wz0p40000gn, which in turn contains four folders named O, C, Cleanup At Startup and T. The O, C, and T directories contain lots of stuff, 750 MB in all.

Can anyone tell me where these are supposed to go? I am a bit disturbed that if I re-boot, these things will be missed and I’ll have problems.

Thanks.

Answer

For future info, Cmd ⌘ Z immediately after the oops would have returned them. It’s likely too late now.

Best guess would be that ‘4y’ & its contents belong in /private/var/folders
based on…

Your top folder is a 2-character combination, & not zz.
Inside that is your long hash, then inside that, O, C, T & Cleanup at Startup.
which is the standard folder hierarchy in there.

You are a lot luckier on FFFFEEEE-DDDD-CCCC-BBBB-AAAA000000F8 as that folder only occurs in one place
/private/var/db/BootCaches
It will share that location with another long hash folder, an alias to PreheatedUser & a couple of other playlist files.

The OS should actually have stopped you from moving any of these, & if you insisted & Authorised it would have, by default, copied rather than moved them – so there is every chance that the originals are still in place. Leave them if everything matches, only move them back if they are missing or distinctly different.

And, just for future reference, private/var/ is really not a place to be playing in, if you don’t know what you’re doing. /private/var/folders is one of the only ones you can get away with any manual alterations all.

Attribution
Source : Link , Question Author : Dopey , Answer Author : Tetsujin

Leave a Comment