ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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

enum ILIAS::Filesystem::Util::Archive::ZipDirectoryHandling : int
Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s
Enumerator
FLAT_STRUCTURE 

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

This is the most common case and per default. 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. Will strip the top directory if there is only one inside the ZIP. Will strip all directories and and will result in a flat structure with files only. 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 30 of file ZipDirectoryHandling.php.

30  : int
31 {
36  case KEEP_STRUCTURE = 1;
37 
44  case ENSURE_SINGLE_TOP_DIR = 2;
48  // case STRIP_IF_ONLY_ONE = 4;
52  case FLAT_STRUCTURE = 8;
57  // case FLAT_STRUCTURE_WITH_SINGLE_TOP_DIR = 16;
58 }
Will keep the top directory of the ZIP file if there is one (simple unzip).