Directory()

121 views
Skip to first unread message

Srdjan

unread,
Jan 5, 2015, 3:22:07 PM1/5/15
to harbou...@googlegroups.com
How I can get list of subfolders?

Klas Engwall

unread,
Jan 5, 2015, 7:39:45 PM1/5/15
to harbou...@googlegroups.com
Hi Srdjan,

> How I can get list of subfolders?

Are you asking how to identify directories in a Directory() result? If
so, loop through the array and check if the attributes include a "D".

If you are asking how to get a recursive list of all files in all
subdirectories, hb_DirScan() will do what you want. The hb_DirScan()
syntax is:

aResult := hb_DirScan( cFilePath, cMask, cAttr )

Regards,
Klas

Srdjan

unread,
Jan 6, 2015, 12:52:34 AM1/6/15
to harbou...@googlegroups.com
Thank you Klas
Reply all
Reply to author
Forward
0 new messages