ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Filesystem\Util\Archive Namespace Reference

Data Structures

class  Archives
 
class  LegacyArchives
 
class  Options
 
class  Unzip
 
class  UnzipOptions
 
class  Zip
 
class  ZipOptions
 

Enumerations

enum  ZipDirectoryHandling : int { FLAT_STRUCTURE = 8 }
 

Enumeration Type Documentation

◆ ZipDirectoryHandling

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s
Enumerator
FLAT_STRUCTURE 

@description Will keep the top directory of the ZIP file if there is one (simple unzip).

This is the most common case and per default. @description When unzipping, a directory is always created first, which has the name of the zip to be unzipped. the rest of the structure is created within this directory. If the ZIP only contains exactly one directory on the first level, which already has the same name as the ZIP, no additional directory is created. @description Will strip the top directory if there is only one inside the ZIP. @description Will strip all directories and and will result in a flat structure with files only. @description Will strip all directories and and will result in a flat structure with files only but inside a directory with the zips name.

Definition at line 26 of file ZipDirectoryHandling.php.

27{
32 case KEEP_STRUCTURE = 1;
33
40 case ENSURE_SINGLE_TOP_DIR = 2;
44 // case STRIP_IF_ONLY_ONE = 4;
48 case FLAT_STRUCTURE = 8;
53 // case FLAT_STRUCTURE_WITH_SINGLE_TOP_DIR = 16;
54}
@ FLAT_STRUCTURE
@description Will keep the top directory of the ZIP file if there is one (simple unzip).