|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Recursively scans a directory tree to get all subfolders and content. More...
Go to the source code of this file.
Usage:
%mp_tree(dir=/tmp, outds=work.tree)
Credits:
Roger Deangelis: https://communities.sas.com/t5/SAS-Programming/listing-all-files-within-a-directory-and-subdirectories/m-p/332616/highlight/true#M74887
| [in] | dir= | (/tmp) Directory to be scanned |
| [out] | outds= | (work.mp_tree) Dataset to create |
dir: a flag (1/0) to say whether it is a directory or not. This is not reliable - folders that you do not have permission to open will be flagged as directories.ext: file extensionfilename: file namedirname: directory namefullpath: directory + file nameDefinition in file mp_tree.sas.