Test
(since EVL 2.1)
On local file system works like standard GNU/Linux ‘test’ command. If <path> starts with ‘hdfs://’, then use function ‘evl_hdfs_test’, which is by default ‘hadoop fs -test’.
Synopsis
Test -[defsz] <path> evl test ( --help | --usage | --version )
Options
- -d
-
return 0 if <path> exists and is a directory
- -e
-
return 0 if <path> exists
- -f
-
return 0 if <path> exists and is a regular file
- -s
-
return 0 if file <path> exists and has a size greater than zero
- -z
-
return 0 if file <path> is zero bytes in size, else return 1
Examples
TBA