dirs

Manipulation of directories and/or files.

Directory navigation

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

Get the full pathname of a directory (or file).

ccd(*subdir, **kwargs)

Get the full pathname of a directory (or file) in an altered working directory.

cdd(*subdir[, data_dir, mkdir])

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

cd_data(*subdir[, data_dir, mkdir])

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

find_executable(name[, options, target])

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

Directory validation

path2linux(path)

Convert a path to a standardized Linux file path format for cross-platform compatibility.

uniform_pathname(pathname)

Convert a pathname to a standard Linux file path format.

is_dir(path_to_dir)

Check whether a string represents a valid directory path.

validate_dir([path_to_dir, subdir, msg])

Validate the pathname of a directory.

validate_filename(file_pathname[, suffix_num])

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

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

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

check_files_exist(filenames, path_to_dir)

Check if specified files exist within a given directory.

Directory/file control

delete_dir(path_to_dir[, ...])

Delete a directory or directories.