func X3.EN_FILE_LIST_DIRECTORIES(Char SERVER_IN, Char PATH_IN, Char SORT_IN, Char FILTER_IN, Char() DIRECTORIES_OUT) : Integer

List subdirectories of a directory on the server

  • SERVER_IN Char Server on which to list the directory (or "" if current runtime)
  • PATH_IN Char Full path or volume to the directory to list
  • SORT_IN Char Sort order on directories (default: N):
    • N : Alphabetical name
    • DC : Creation date
    • DA : Last access date
    • DW : Last write date
    • - : (To be put in front of the chosen type in order to have a descending sort)
  • FILTER_IN Char Possible filter on the name of the directories (see function pat())
  • DIRECTORIES_OUT Char() Array variable that will contain the directories found (limit of 32767 directories)
Return Integer Number of directories found
Example

func X3.EN_FILE_LIST_DIRECTORIES("", filpath("tmp",'',''), "-N", "", MYLIST))
Return in MYLIST all subdirectories in the tmp directory in descending order of name