TemporaryDirectory
Table of Contents
Properties
-
$deleteWhenDestroyed
: bool
-
$forceCreate
: bool
-
$location
: string
-
$name
: string
Methods
-
__construct()
: mixed
-
__destruct()
: mixed
-
create()
: self
-
delete()
: bool
-
deleteWhenDestroyed()
: self
-
empty()
: self
-
exists()
: bool
-
force()
: self
-
getName()
: string
-
location()
: self
-
make()
: self
-
name()
: self
-
path()
: string
-
deleteDirectory()
: bool
-
getFullPath()
: string
-
getSystemTemporaryDirectory()
: string
-
isFilePath()
: bool
-
isValidDirectoryName()
: bool
-
removeFilenameFromPath()
: string
-
sanitizeName()
: string
-
sanitizePath()
: string
$deleteWhenDestroyed
protected
bool
$deleteWhenDestroyed
= false
$forceCreate
protected
bool
$forceCreate
= false
$location
protected
string
$location
$name
protected
string
$name
= ''
__construct()
public
__construct([string $location = '' ]) : mixed
Parameters
-
$location
: string
= ''
-
__destruct()
public
__destruct() : mixed
create()
public
create() : self
delete()
public
delete() : bool
deleteWhenDestroyed()
public
deleteWhenDestroyed([bool $deleteWhenDestroyed = true ]) : self
Parameters
-
$deleteWhenDestroyed
: bool
= true
-
empty()
public
empty() : self
exists()
public
exists() : bool
force()
public
force() : self
getName()
public
getName() : string
location()
public
location(string $location) : self
Parameters
-
$location
: string
-
make()
public
static make([string $location = '' ]) : self
Parameters
-
$location
: string
= ''
-
name()
public
name(string $name) : self
Parameters
-
$name
: string
-
path()
public
path([string $pathOrFilename = '' ]) : string
Parameters
-
$pathOrFilename
: string
= ''
-
deleteDirectory()
protected
deleteDirectory(string $path) : bool
Parameters
-
$path
: string
-
getFullPath()
protected
getFullPath() : string
getSystemTemporaryDirectory()
protected
getSystemTemporaryDirectory() : string
isFilePath()
protected
isFilePath(string $path) : bool
Parameters
-
$path
: string
-
isValidDirectoryName()
protected
isValidDirectoryName(string $directoryName) : bool
Parameters
-
$directoryName
: string
-
removeFilenameFromPath()
protected
removeFilenameFromPath(string $path) : string
Parameters
-
$path
: string
-
sanitizeName()
protected
sanitizeName(string $name) : string
Parameters
-
$name
: string
-
sanitizePath()
protected
sanitizePath(string $path) : string
Parameters
-
$path
: string
-