| 4D v18file.copyTo( ) | ||||||||
| 
 | 
    4D v18
 file.copyTo( ) 
         | |||||||
| Constant | Value | Comment | 
| fk overwrite | 4 | Overwrite existing elements, if any | 
Returned object
The method returns the copied File object.
You want to copy a picture file from the user's document folder to the database folder:
 C_OBJECT($source;$copy)
 $source:=Folder(fk documents folder).file("Pictures/photo.png")
 $copy:=$source.copyTo(Folder("/PACKAGE");fk overwrite)
	Product:  4D
	Theme:  File and Folder
	
        
        
	
	
	
	4D Language Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment