4D v18

folder.folders( )

Home

 
4D v18
folder.folders( )

folder.folders( )  


 

The folder.folders( ) method returns a collection of Folder objects contained in the parent folder. 

By default, if you omit the options parameter, only the folders at the first level of the folder are returned in the collection. You can modify this by passing, in the options parameter, one or more of the following constants:

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 Folder objects. 

Example  

You want the collection of all folders and subfolders of the database folder:

 C_COLLECTION($allFolders)
 $allFolders:=Folder("/PACKAGE").folders(fk recursive)



See also 

folder.folder( )

 
PROPERTIES 

Product: 4D
Theme: File and Folder

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v18)