GLib.FileTest

A test to perform on a file using GLib.file_test.

FileTest.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.

FileTest.IS_SYMLINK

true if the file is a symlink.

FileTest.IS_DIR

true if the file is a directory.

FileTest.IS_EXECUTABLE

true if the file is executable.

FileTest.EXISTS

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