4D v18

folder.file( )

Home

 
4D v18
folder.file( )

folder.file( )  


 

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 

 
ARTICLE USAGE

4D Language Reference ( 4D v18)