onyo mkdir
Create DIRECTORYs or convert Asset Files into an Asset Directory.
Intermediate directories are created as needed (i.e. parent and child directories can be created in one call).
An empty
.anchorfile is added to each directory, to ensure that git tracks them even when empty.If the DIRECTORY already exists, the path is protected, or the asset is already an Asset Directory, then Onyo will error and leave everything unmodified.
usage: onyo mkdir [-h] [-m MESSAGE] DIR [DIR ...]
Positional Arguments
- DIR
Directories to create; or assets to convert into an Asset Directory.
Named Arguments
- -m, --message
Use the given MESSAGE as the commit message (rather than the default). If multiple
--messageoptions are given, their values are concatenated as separate paragraphs.
Examples
Add a new user to a group:
$ onyo mkdir accounting/Bingo\ Bob/
Convert an Asset File into an Asset Directory:
$ onyo mkdir accounting/Bingo\ Bob/laptop_apple_macbook.oiw629