>Hi all,
>
>Back looking at the GetDirectoryTree() function - in the current one I have (based on code by Doug Hennig and Tamar), the code does a CD to change to the appropriate directory first (at least the code that I have - they might have improved it later). (it seems to me that "CD" is kinda a "klunky" way to do this).
>
>But I thought, is there no way to get a list of directories using ADIR with also a file path as the "base" folder to start with? It seems not - not unless I have not yet figured out how to call ADIR()
>
>This works (their code):
>
>CD (tcBasePath)
>ADIR(laTest,[],"D")
>
>These did not work (i.e. no change of directory first) as they always returned no folders or both the files and folders in that directory:
>
>ADIR(laTest,"F:\Office\Templates","D")
>ADIR(laTest,"F:\Office\Templates\","D")
>ADIR(laTest,"F:\Office\Templates\*","D")
>
>It seems as though ADIR() is not respecting the "D" argument - unless that means "folders in ADDITION to the files.
From ADIR() Help: "Include an empty string in cFileSkeleton to return just subdirectory names, hidden files or system files".
I see the same thing as you if the cFileSkeleton is not blank.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up