Log In    |    Knowledge Base    |    4D Home
Tech Tip: Checking whether a folder is empty
PRODUCT: 4D | VERSION: 2003.4 | PLATFORM: Mac & Win
Published On: August 12, 2004
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Here is a simple method that checks to see whether the folder of the given path is empty:

  ` Project Method: IsFolderEmpty

ARRAY TEXT($arritems;0)
FOLDER LIST($path;$arritems)
If (Size of array($arritems)=0)
  DOCUMENT LIST($path;$arritems)
    If (Size of array($arritems)=0)
    End if
End if