GetDirectoryContent( string specs, ref string content[}, integer filetype ) return integer

Store the content of the specified directory according to the given specifications and files types into specified array of string.
To set the filetype combines the following values:
  • DIR_RW_FILES (0)
  • DIR_RO_FILES (1)
  • DIR_HIDDEN_FILES (2)
  • DIR_SYSTEM_FILES (4)
  • DIR_SUBDIR_FILES (16)
  • DIR_ARCHIVE_FILES (32)
  • DIR_DRIVES (16384)
  • DIR_EXCLUDE_RW_FILES (32768)

It will returns the number of entries found, or -1 if an error occurs.

Example:

...
string ls_dirlist[}
...
if #.GetDirectoryContent( GetCurrentDirectory()+"\*.*", ls_dirlist, #.DIR_RW_FILES + #.DIR_SYSTEM_FILES) = -1 then return -1 
...


Last edited Oct 29, 2015 at 9:05 PM by domangep, version 1