This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
folder.folders( )

folder.folders( ) 


 

folder.folders ( {options} ) -> Result 
Parameter Type   Description
options  Longint in Folder list options
Result  Collection in Collection of children folder objects

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 

Created: 4D v17 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)