static
void
addTrailingSlash
( $value)
static
void
checkAndMakeFolder
( $path, [ $recursive = false])
checks permission to write in path $path and tries a chmod(0755)
static
void
checkWritePermissions
( $path, [ $mod = 0755], [ $nocreate = false])
static
void
compress
( $file, [ $compression = "gzip"], [ $destination = ""], [ $remove = true], [ $writemode = "wb"])
-
$file
-
$compression
-
$destination
-
$remove
-
$writemode
copy a file due to windows limitations, the file has to be copied and the old file deleted afterwards.
if $new exists already, windows will not rename the file $old
static
void
copyFile
( $old, $new)
static
void
createLocalFolder
( $RootDir, [ $path = ""])
static
void
createLocalFolderByPath
( $completeDirPath)
static
void
decompress
( $gzfile, [ $remove = true])
static
void
delete
( $filename)
static
void
deleteLocalFolder
( $filename, [ $delAll = 0])
static
void
getComPrefix
( $compression)
static
void
getCompression
( $filename)
static
void
getContentDirectFromDB
( $id, $name, [ $db = ""])
static
void
getUniqueId
([ $md5 = true])
static
void
getZExtension
( $compression)
static
void
hasCompression
( $comp)
static
void
hasURL
( $filename)
static
void
insertIntoCleanUp
( $path, $date)
static
void
insertIntoErrorLog
( $text)
static
void
isCompressed
( $file, [ $offset = 0])
static
void
load
( $filename, [ $flags = "rb"], [ $rsize = 8192])
static
void
loadLine
( $filename, [ $offset = 0], [ $rsize = 8192], [ $iscompressed = 0])
-
$filename
-
$offset
-
$rsize
-
$iscompressed
static
void
loadPart
( $filename, [ $offset = 0], [ $rsize = 8192], [ $iscompressed = 0])
-
$filename
-
$offset
-
$rsize
-
$iscompressed
static
void
mkpath
( $path)
recursively moves a directory
it will only move $dir if there is no directory in $target with the same name
static
void
moveDir
( $dir, $target)
move/rename a file due to windows limitations, the file has to be copied and the old file deleted afterwards.
if $new exists already, windows will not rename the file $old
static
void
moveFile
( $old, $new)
static
void
removeTrailingSlash
( $value)
static
void
renameFile
( $old, $new)
static
void
save
( $filename, $content, [ $flags = "wb"], [ $create_path = false])
-
$filename
-
$content
-
$flags
-
$create_path
static
void
saveFile
( $file_name, [ $sourceCode = ""])
static
void
saveTemp
( $content, [ $filename = ""], [ $flags = "wb"])
-
$content
-
$filename
-
$flags
split a file into various parts of a predefined size
static
void
splitFile
( $filename, $path, [ $pattern = ""], [ $split_size = 0], [ $marker = ""])
-
$filename
-
$path
-
$pattern
-
$split_size
-
$marker
recursively deletes a directory with all its contents
void
rmdirr
(string $path, [bool $nofiles = false])
-
string
$path: path to the directory that has to be deleted
-
bool
$nofiles: does not delete any files but only empty subdirectories