Next: , Up: testing files   [Contents][Index]


23.8.1 Directories

Function: dotest-cd directory

Change the working directory. This is just a wrapper for cd; if verbose mode is on: print a message.

Function: dotest-mkdir directory
Function: dotest-mkdir directory prefix

Create directory under the temporary directory; directory must be a relative pathname (that is: it must not begin with a slash).

The optional prefix is a relative pathname that is prepended to directory: it is useful to prepend the name of a parent directory.

Print to stdout the full pathname of the directory.

Temporary directory

Function: dotest-echo-tmpdir

Print the value of the temporary directory in which all the files and directories will be created. The value is prefixed with the value of the environment variable TMPDIR, or /tmp if not set.

Function: dotest-cd-tmpdir

Change the working directory to the temporary directory.

Function: dotest-mktmpdir

Create the temporary directory. dotest-mkdir() creates the temporary directory automatically by using the --parents option of mkdir. This function is automatically invoked by dotest-mkfile() and dotest-mkpathname().


Next: , Up: testing files   [Contents][Index]

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