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

Home

 
4D v19.8
folder.file( )

folder.file( ) 


 

folder.file ( path ) -> Result 
Parameter Type   Description
path  Text in Relative POSIX file pathname
Result  Object, Null in File object

The folder.file( ) method creates a File object inside the Folder object and returns its reference.

In path, pass a relative POSIX path to designate the file to return. The path will be evaluated from the parent folder as root. 

Returned object

The folder.file( ) method returns a File object or null if path is invalid. 

Example  

 C_OBJECT($myPDF)
 $myPDF:=Folder(fk documents folder).file("Pictures/info.pdf")



See also 

folder.files( )
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)