4D v18folder.files( ) |
|||||||||||
|
4D v18
folder.files( )
|
Constant | Value | Comment |
fk recursive | 1 | The collection contains files or folders of the specified folder and its subfolders. |
fk ignore invisible | 8 | Invisible files or folders are not listed |
Returned value
Collection of File objects.
You want to know if there are invisible files in the Database folder:
C_COLLECTION($all;$noInvisible)
$all:=Folder(fk database folder).files()
$noInvisible:=Folder(fk database folder).files(fk ignore invisible)
If($all.length#$noInvisible.length)
ALERT("Database folder contains hidden files.")
End if
You want to get all files that are not invisible in the Documents folder:
C_COLLECTION($recursive)
$recursive:=Folder(fk documents folder).files(fk recursive+fk ignore invisible)
Product: 4D
Theme: File and Folder
4D Language Reference ( 4D v18)