ZIP¶
-
class
OC\Archive\
ZIP
¶ Source: lib/private/Archive/ZIP.php#38 Parent: OC\Archive\Archive
Properties¶
Methods¶
-
public
OC\Archive\ZIP::
__construct
($source)¶ Source: Parameters: - $source (string)
-
public
OC\Archive\ZIP::
addFolder
($path)¶ - add an empty folder to the archive
Source: Parameters: - $path (string)
Returns: bool
-
public
OC\Archive\ZIP::
addFile
($path, $source="")¶ - add a file to the archive
Source: Parameters: - $path (string)
- $source (string) either a local file or string data
Returns: bool
-
public
OC\Archive\ZIP::
rename
($source, $dest)¶ - rename a file or folder in the archive
Source: Parameters: - $source (string)
- $dest (string)
Returns: bool | null
-
public
OC\Archive\ZIP::
filesize
($path)¶ - get the uncompressed size of a file in the archive
Source: Parameters: - $path (string)
Returns: int
-
public
OC\Archive\ZIP::
mtime
($path)¶ - get the last modified time of a file in the archive
Source: Parameters: - $path (string)
Returns: int
-
public
OC\Archive\ZIP::
getFolder
($path)¶ - get the files in a folder
Source: Parameters: - $path (string)
Returns: array
-
public
OC\Archive\ZIP::
getFiles
()¶ - get all files in the archive
Source: lib/private/Archive/ZIP.php#132 Returns: array
-
public
OC\Archive\ZIP::
getFile
($path)¶ - get the content of a file
Source: Parameters: - $path (string)
Returns: string
-
public
OC\Archive\ZIP::
extractFile
($path, $dest)¶ - extract a single file from the archive
Source: Parameters: - $path (string)
- $dest (string)
Returns: bool | null
-
public
OC\Archive\ZIP::
extract
($dest)¶ - extract the archive
Source: Parameters: - $dest (string)
Returns: bool
-
public
OC\Archive\ZIP::
fileExists
($path)¶ - check if a file or folder exists in the archive
Source: Parameters: - $path (string)
Returns: bool
-
public
OC\Archive\ZIP::
remove
($path)¶ - remove a file or folder from the archive
Source: Parameters: - $path (string)
Returns: bool
-
public
OC\Archive\ZIP::
getStream
($path, $mode)¶ - get a file handler
Source: Parameters: - $path (string)
- $mode (string)
Returns: bool | resource
-
public
OC\Archive\ZIP::
writeBack
($tmpFile, $path)¶ - write back temporary files
Source: lib/private/Archive/ZIP.php#218