Next: , Previous: , Up: file commands   [Contents][Index]


6.2.3 Creating directories

Function: mbfl_file_enable_make_directory

Declare the commands required to create directories. Declaring the intention to use a program

The programs are: mkdir.

Function: mbfl_file_make_directory pathname
Function: mbfl_file_make_directory pathname permissions

Create a directory named pathname; all the non–existent parents are created, too. If permissions is present: it is the specification of directory permissions in octal mode.

This function does not test if the directory already exists: the command is always executed.

Function: mbfl_file_make_if_not_directory pathname
Function: mbfl_file_make_if_not_directory pathname permissions

Wrapper for mbfl_file_make_directory() that creates the directory if it does not exist.

If a sudo user was requested: this function resets the request even if no command has been executed.


Next: , Previous: , Up: file commands   [Contents][Index]

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