G
Guenther Sohler
Guest
Hallo group,
How can I read the contents of a directory and get the result into
a skill list ?
rds
How can I read the contents of a directory and get the result into
a skill list ?
rds
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hallo group,
How can I read the contents of a directory and get the result into
a skill list ?
rds
Guenther Sohler,
From cdsFinder:
getDirFiles(
S_name
)
=> l_strings
Returns a list of the names of all files and directories, including .
and .., in a directory.
--
Suresh
Guenther Sohler wrote:
Hallo group,
How can I read the contents of a directory and get the result into
a skill list ?
rds
Nice.be careful, getDirFiles stacktraces if the directory does not
exist, so you had better do the following.
("." ".." "dira" "dirb" "dirc")getDirFiles("/tmp")
REPORTS:
*Error* getDirFiles: nonexistent or permission denied - "/foo"getDirFiles("/foo")
REPORTS:
nil(when (isDir "/foo") (getDirFiles "/foo"))
REPORTS:
("." ".." "dira" "dirb" "dirc")(when (isDir "/tmp") (getDirFiles "/tmp"))
REPORTS:
exit
%
be careful, getDirFiles stacktraces if the directory does not
exist, so you had better do the following.
(when (isDir S_name)
(getDirFiles s_name))
Suresh Jeevanandam wrote:
Guenther Sohler,
From cdsFinder:
getDirFiles(
S_name
)
=> l_strings
Returns a list of the names of all files and directories, including .
and .., in a directory.
--
Suresh
Guenther Sohler wrote:
Hallo group,
How can I read the contents of a directory and get the result into
a skill list ?
rds
See also the public ADE SKILL function drbBrowseFormCB() which brings
up a browser that can be used as an example SKILL-based file &
directory graphical browser.