Mkdir
(since EVL 1.0)
Create <directory>
, which might be one of:
<local_path> hdfs://<path> s3://<bucket>/<path> sftp://<path>
With option ‘--parents’ no error if directory already exists and make parent directories as needed.
Each <directory>
is of the form
[<scheme>://][[<user>@@]<host>[:<port>]]<path> ...
For scheme ‘hdfs://’ it calls function ‘evl_hdfs_mkdir’, which is by default ‘hdfs dfs -mkdir’.
For scheme ‘s3://’ it calls function ‘evl_s3_mkdir’.
For scheme ‘sftp://’ it calls function ‘evl_sftp_mkdir’.
Synopsis
Mkdir [-p|--parents] <directory>... evl mkdir [-p|--parents] <directory>... evl mkdir ( --help | --usage | --version )
Options
- -p, --parents
-
no error if existing, make parent directories as needed
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- --version
-
print version and exit
Examples
- Simple usage examples:
Mkdir hdfs:///some/path/ Mkdir /some/local/machine/path/
- Depends on environment, e.g. ‘PROD’/‘TEST’/‘DEV’, might be useful to be used this
way:
# on DEV: OUTPUT_DIR=/data/output # on PROD: OUTPUT_DIR=hdfs:///data/output
and then in ‘evs’ file:
Mkdir -p "$OUTPUT_DIR"