Directory
in package
implements
DirectoryInterface
Uses
GetRelativePathTrait, DirectoryCreateIfMissingTrait, DirectoryDeleteTrait, NodeTrait, SymlinkTrait
Directories, Files, Device entries etc are nodes
Interfaces, Classes, Traits and Enums
- DirectoryInterface
- A unixoid filesystem directory
Table of Contents
- $path : AbsolutePathInterface
- __construct() : mixed
- createIfMissing() : mixed
- createSubDir() : mixed
- createSymlinkAs() : bool
- deleteIfEmpty() : mixed
- deleteRecursively() : mixed
- exists() : bool
- getAbsolutePath() : AbsolutePath
- getPathRelativeTo() : RelativePath
- isExecutable() : bool
- isLink() : bool
- isReadable() : bool
- isWriteable() : bool
- touch() : mixed
Properties
$path
protected
AbsolutePathInterface
$path
Methods
__construct()
public
__construct(AbsolutePathInterface $path) : mixed
Parameters
- $path : AbsolutePathInterface
Return values
mixed —createIfMissing()
public
createIfMissing() : mixed
Return values
mixed —createSubDir()
public
createSubDir() : mixed
Return values
mixed —createSymlinkAs()
public
createSymlinkAs() : bool
Return values
bool —deleteIfEmpty()
public
deleteIfEmpty() : mixed
Return values
mixed —deleteRecursively()
public
deleteRecursively() : mixed
Return values
mixed —exists()
public
exists() : bool
Return values
bool —getAbsolutePath()
public
getAbsolutePath() : AbsolutePath
Return values
AbsolutePath —getPathRelativeTo()
public
getPathRelativeTo(AbsolutePath $path) : RelativePath
Parameters
- $path : AbsolutePath
Return values
RelativePath —isExecutable()
public
isExecutable() : bool
Return values
bool —isLink()
public
isLink() : bool
Return values
bool —isReadable()
public
isReadable() : bool
Return values
bool —isWriteable()
public
isWriteable() : bool
Return values
bool —touch()
public
touch() : mixed