FileTest

class FileTest

A test to perform on a file using file_test().

Fields

class FileTest
EXISTS

True if the file exists. It may or may not be a regular file.

IS_DIR

True if the file is a directory.

IS_EXECUTABLE

True if the file is executable.

IS_REGULAR

True if the file is a regular file (not a directory). Note that this test will also return True if the tested file is a symlink to a regular file.

True if the file is a symlink.