Used find in bash to generate a list of just the directories in the pile of moved-off files, then prepared the drive, then converted the list from line-separated to null-separated, and finally fed it back into xargs in order to recreate the empty directory tree.
The null separation was needed because some of the directories have spaces in them.
Funny thing: Because there are ~3000 directories, and the FAT32 cluster size is 32KB, the directory entries alone take up almost 100MB. Awful waste!
=> More informations about this toot | View the thread | More toots from HunterZ@mastodon.sdf.org
text/gemini
This content has been proxied by September (3851b).