Loading...
Searching...
No Matches
dirlist.sas File Reference

Lists the folders below a parent, for the deploy screens. More...

Go to the source code of this file.

Detailed Description

A blank parent is the platform root, which on Windows is answered with the drives that exist - that is mp_dirlist's job, so no filesystem logic lives here. DEPTH (1-3, default 1) is how many levels come back, so a parent with tens of thousands of subfolders is never transferred in full, and MAXOBS (default 2000) caps the rows with a TRUNCATED flag. Only rows mp_dirlist classified as a folder or as locked come back; a locked entry is one that could not be opened, kept so the administrator can see it is there.

The parent arrives in the adapter table and is read back with symget, so its characters are data: a value over 1000 characters, one carrying a control character, or one that is not an absolute path is refused, and the shape is then checked with mp_validatecol(ISPATH).

Access is whatever the platform grants on the admin folder: the deploy screen calls it before the app is configured, so the service itself carries no gate.

Data Inputs

fromjs
PARENT:$1000. DEPTH:best. MAXOBS:best.
/tmp 1 2000

Data Outputs

dirinfo
PARENT:$1000. SEP:$1. DEPTH:best. TRUNCATED:$1. PLATFORM:$3.
/tmp / 1 N UNIX
dirlist
FILEPATH:$2000. FILENAME:$255. FILE_OR_FOLDER:$6. LEVEL:best. MSG:$200.
/tmp/dc dc folder 0

SAS Macros

Version
9.3
Author
4GL Apps Ltd

@sasjslint {"maxLineLength": 80}

Definition in file dirlist.sas.