all-files: func [
{Returns a block of fully qualified filenames for the directory.}
spec [file!] "Starting Directory"
block [block!] "Block to append to"
/deep "Recurse sub-directories."
/local f-spec
][
spec: dirize spec
foreach file read spec [
f-spec: join spec file
either all [deep dir? f-spec] [
all-files/deep f-spec block
][
append block f-spec
]
]
block
]
You need to create an account or log in to post comments to this site.