nem.ec

Programming Information Security Recipes Personal Code Snippets

Create all parent directories in a file path

via https://stackoverflow.com/a/41146954/564755

from pathlib import Path
path = Path('/home/user/first/second/third')
path.mkdir(parents=True)
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.