EVL – ETL Tool


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

Copyright © 2017–2022 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.

Table of Contents

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