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

Home

 
4D v19.8
About ZIP Archives

About ZIP Archives  


 

A 4D ZIP archive is a File or Folder object containing one or more files and folders, which are compressed to be smaller than their original size. These archives are created with a ".zip" extension and can be used to:

  • Save disk space
  • Store data on a removable media device
  • Easily transfer files/folders via mediums which may have size limitations (e.g., email or inter/intranet systems)

4D ZIP archives are created and handled with the following 4D commands:

The file and folder properties are compatible with ZIP archives, with some specificities which are listed below. 

NotesAll properties are read-only.

Files  
Folders  

Properties ZIP archive comments
folder.creationDate Date may be different for the root folder from a folder within the archive
folder.creationTime Time may be different for the root folder from a folder within the archive
folder.exists  
folder.extension  
folder.fullName  
folder.hidden  
folder.isAlias  
folder.isFile  
folder.isFolder  
folder.isPackage  
folder.modificationDate Date may be different for the root folder from a folder within the archive
folder.modificationTime Time may be different for the root folder from a folder within the archive
folder.name  
folder.original  
folder.parent The archive's virtual root folder has no parent. However, the folders within the archive may have a parent other than the root.
folder.path Returns a path relative to the archive
folder.platformPath  

Methods  

The following tables list the compatibility of file and folder methods with ZIP archives. 

Files  

 Methods   Comments
 file.copyTo( )  
 file.create( )  Not available for ZIP archives
 file.createAlias( )  Not available for ZIP archives
 file.delete( )  Not available for ZIP archives
 file.getContent( )  
 file.getIcon( )  
 file.getText( )  
 file.moveTo( )  Not available for ZIP archives
 file.rename( )  Not available for ZIP archives
 file.setContent( )  Not available for ZIP archives
 file.setText( )  Not available for ZIP archives
Folders  

 Methods  Comments
 folder.copyTo( )  
 folder.create( )  Not available for ZIP folder archives
 folder.createAlias( )  Not available for ZIP folder archives
 folder.delete( )  Not available for ZIP folder archives
 folder.file( )  
 folder.files( )  
 folder.folder( )  
 folder.folders( )  
 folder.getIcon( )  
 folder.moveTo( )  Not available for ZIP folder archives
 folder.rename( )  Not available for ZIP folder archives



See also 

ZIP Create archive
ZIP Read archive

 
PROPERTIES 

Product: 4D
Theme: File and Folder

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18

 
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)