*! version 14 1oct2021

Title

pathmaker -- Sets global path variables using subfolder names.

Syntax

pathmaker
input_folder, [options]

Main
ignore(subf_names) list of subfolder names to be ignored

low names global variables using lowercase; default is case of subfolder

back uses backward slashes in path; default is forward slash

Description

pathmaker creates global path variables for each folder in
input_folder. Global variables are named using subfolder names.

Options

Main

ignore(subf_names) ignores all subfolders provided in subf_names. Global path variables will not be provided for these subfolders.

low uses lower case for naming all global variables. If not specified then the case of the subfolder is adopted.

back uses backward slashes in all global path variables regardless of direction specified for input_folder.

Remarks

Note that global paths will not be created for subfolders whose name cannot be assigned to a global path. A subfolder named "_oldfolder" will not be assigned to a global path variable as "_oldfolder" cannot be used to name a global variable. input_folder will be assigned to global path "root". If a subfolder has a space in its name the space will be removed for the global variance name. Note that to ignore folders with spaces in their names requires the use of '""' as illustrated in the example below.

Examples

. pathmaker C:\Users\dofiles, low

. pathmaker C:\Users\dofiles, b

. pathmaker C:\Users\dofiles, i(folder1 folder2)

. pathmaker C:\Users\dofiles, i(`""folder 1" "folder2""')

Author

Iain Snoddy

iainsnoddy@gmail.com