20.13.2 Testing directory existence and permissions

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

Function: mbfl_file_is_directory DIRECTORY
Function: mbfl_file_is_directory DIRECTORY PRINT_ERROR

Return true if DIRECTORY is not the empty string and is a directory.

Function: mbfl_file_directory_is_readable DIRECTORY
Function: mbfl_file_directory_is_readable DIRECTORY PRINT_ERROR
Function: mbfl_directory_is_readable DIRECTORY
Function: mbfl_directory_is_readable DIRECTORY PRINT_ERROR

Return true if DIRECTORY is not the empty string, is a directory and is readable.

Function: mbfl_file_directory_is_writable DIRECTORY
Function: mbfl_file_directory_is_writable DIRECTORY PRINT_ERROR
Function: mbfl_directory_is_writable DIRECTORY
Function: mbfl_directory_is_writable DIRECTORY PRINT_ERROR

Return true if DIRECTORY is not the empty string, is a directory and is writable.

Function: mbfl_file_directory_is_executable DIRECTORY
Function: mbfl_file_directory_is_executable DIRECTORY PRINT_ERROR
Function: mbfl_directory_is_executable DIRECTORY
Function: mbfl_directory_is_executable DIRECTORY PRINT_ERROR

Return true if DIRECTORY is not the empty string, is a directory and is executable.

Function: mbfl_file_directory_validate_writability DIRECTORY DESCRIPTION
Function: mbfl_directory_validate_writability DIRECTORY DESCRIPTION

Test directory existence and writability; return true if the directory exists and is writable. If the condition is not met: Print informative messages using DESCRIPTION to refer to the directory.


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