FDL indir

Execute a code fragment in a directory.

Arguments
[options] directory script
Description
Executes Tcl script in the given directory.
Option
Description
-create
Create directory if it does not exist.
-onerror script
Execute "script" if the directory does not exist.
Examples
indir -create Subdir {
    E BASE {
        J vw cp aa bb
        J vw cp bb cc
    }
}
indir -onerror {
    VovMessage "Skip directory Subdir because it does not exist" 
} Subdir {
    E BASE {
        J vw cp aa bb
        J vw cp bb cc
    }
}