Log In    |    Knowledge Base    |    4D Home
Tech Tip: Getting the list of folders in a directory
PRODUCT: 4D | VERSION: 2004.4 | PLATFORM: Mac & Win
Published On: November 20, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

You can get the list of folders in a specified directory by using the FOLDER LIST command. As shown in the method below, the names of the folders in the pathname you pass (in the mPath) will be saved in the array (FoldersInDir):

ARRAY TEXT(FoldersInDir;0)
FOLDER LIST(mPath;FoldersInDir)