Copy an empty Directory Structure

If you want to copy an empty directory stucture, from the current directory to some target directory, you can do this:

python -c 'import os,sys;dirs=[ r for r,s,f in os.walk(".") if r != "."];[os.makedirs(os.path.join(sys.argv[1],i)) for i in dirs if not os.path.exists(os.path.join(sys.argv[1],i))]' ~/some/target

It does not overwrite directories or files in the target directory.

You just slap the target directory to the end of it.

Related: [[🧠 Ideaverse/MacOS/- -|MacOS]]

Created: 1$=dv.span(dv.current().file.ctime)