:right-sidebar: True FileTest =================================================================== .. currentmodule:: gi.repository.GLib .. class:: FileTest :no-contents-entry: A test to perform on a file using :func:`~gi.repository.GLib.file_test`. Fields ------ .. rst-class:: interim-class .. class:: FileTest :no-index: .. attribute:: EXISTS :const:`True` if the file exists. It may or may not be a regular file. .. attribute:: IS_DIR :const:`True` if the file is a directory. .. attribute:: IS_EXECUTABLE :const:`True` if the file is executable. .. attribute:: IS_REGULAR :const:`True` if the file is a regular file (not a directory). Note that this test will also return :const:`True` if the tested file is a symlink to a regular file. .. attribute:: IS_SYMLINK :const:`True` if the file is a symlink.