dirs

Manipulation of directories and/or files.

Directory navigation

cd(*subdir[, mkdir, cwd, back_check])

Specifies the pathname of a directory (or file).

cdd(*subdir[, data_dir, mkdir])

Specifies the pathname of a directory (or file) under data_dir.

cd_data(*subdir[, data_dir, mkdir])

Specifies the pathname of a directory (or file) under data_dir of a package.

find_executable(name[, options, target])

Finds the pathname of an executable file for a specified application.

Directory validation

normalize_pathname(pathname[, sep])

Converts a pathname to a consistent file path format for cross-platform compatibility.

is_dir(path_to_dir)

Checks whether a string represents a valid directory path.

validate_dir([path_to_dir, subdir, msg])

Validates the pathname of a directory.

validate_filename(file_pathname[, suffix_num])

Validates the filename and create a new filename with a suffix if the original exists.

get_file_pathnames(path_to_dir[, file_ext, ...])

Gets paths of files in a directory matching the specified file extension.

check_files_exist(filenames, path_to_dir[, ...])

Checks if specified files exist within a given directory.

Directory/file control

delete_dir(path_to_dir[, ...])

Deletes a directory or directories.