메소드 |
설명 |
|
append ( string $path, string $contents, string | null $owner = null ) : void |
Append the contents to the given file. |
|
appendAsUser ( string $path, string $contents ) : void |
Append the contents to the given file as the non-root user. |
|
chgrp ( string $path, string $group ) |
Change the group of the given path. |
|
chown ( string $path, string $user ) |
Change the owner of the given path. |
|
copy ( string $from, string $to ) : void |
Copy the given file to a new location. |
|
copyAsUser ( string $from, string $to ) : void |
Copy the given file to a new location for the non-root user. |
|
ensureDirExists ( string $path, string | null $owner = null, integer $mode = 493 ) : void |
Ensure that the given directory exists. |
|
exists ( string $path ) : boolean |
Determine if the given file exists. |
|
get ( string $path ) : string |
Read the contents of the given file. |
|
isBrokenLink ( string $path ) : boolean |
Determine if the given path is a broken symbolic link. |
|
isDir ( string $path ) : boolean |
Determine if the given path is a directory. |
|
isLink ( string $path ) : boolean |
Determine if the given path is a symbolic link. |
|
mkdir ( string $path, string | null $owner = null, integer $mode = 493 ) : void |
Create a directory. |
|
mkdirAsUser ( string $path, integer $mode = 493 ) : void |
Create a directory as the non-root user. |
|
put ( string $path, string $contents, string | null $owner = null ) : string |
Write to the given file. |
|
putAsUser ( string $path, string $contents ) : string |
Write to the given file as the non-root user. |
|
readLink ( string $path ) : string |
Resolve the given symbolic link. |
|
realpath ( string $path ) : string |
Resolve the given path. |
|
removeBrokenLinksAt ( string $path ) : void |
Remove all of the broken symbolic links at the given path. |
|
scandir ( string $path ) : array |
Scan the given directory path. |
|
symlink ( string $target, string $link ) : void |
Create a symlink to the given target. |
|
symlinkAsUser ( string $target, string $link ) : void |
Create a symlink to the given target for the non-root user. |
|
touch ( string $path, string | null $owner = null ) : string |
Touch the given path. |
|
touchAsUser ( string $path ) : void |
Touch the given path as the non-root user. |
|
unlink ( string $path ) : void |
Delete the file at the given path. |
|