dirs
Manipulation of directories and/or files.
Directory navigation
cd(*subdir[, mkdir, cwd, back_check, normalized])
|
Specifies the pathname of a directory (or file). |
cdd(*subdir[, data_dir, mkdir, normalized])
|
Specifies the pathname of a directory (or file) under data_dir. |
cd_data(*subdir[, data_dir, mkdir, normalized])
|
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, add_slash])
|
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. |
check_relative_pathname(pathname[, normalized])
|
Checks if the pathname is relative to the current working directory. |
Directory/file management
add_slashes(pathname[, normalized, ...])
|
Adds leading and/or trailing slashes to a given pathname for formatting or display purposes. |
delete_dir(path_to_dir[, ...])
|
Deletes a directory or directories. |