20.13.1 Testing file existence and permissions

For the semantics of the parameter PRINT_ERROR see Coding conventions and identifier names.

Function: mbfl_file_exists PATHNAME

Return true if PATHNAME exists.

Function: mbfl_file_is_file FILENAME
Function: mbfl_file_is_file FILENAME PRINT_ERROR

Return true if FILENAME is not the empty string and is a file.

Function: mbfl_file_is_readable FILENAME
Function: mbfl_file_is_readable FILENAME PRINT_ERROR

Return true if FILENAME is not the empty string, is a file and is readable.

Function: mbfl_file_is_writable FILENAME
Function: mbfl_file_is_writable FILENAME PRINT_ERROR

Return true if FILENAME is not the empty string, is a file and is writable.

Function: mbfl_file_is_executable FILENAME
Function: mbfl_file_is_executable FILENAME PRINT_ERROR

Return true if FILENAME is not the empty string, is a file and is executable.


This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.