EVL

Table of Contents


Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2020 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.

Test

On local file system works like standard GNU/Linux ‘test’ command. If <path> starts with ‘hdfs://’, then use $HADOOP_FS_TEST command which is by default ‘hadoop fs -test’.

Synopsis

Test
  -[defsz] <path>

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