FilesystemEntity
class FilesystemEntity (View source)
An entity on the filesystem, used as a base class for Webroot and SSPakFile
Properties
protected | $server | |||
protected | $path | |||
protected | $executor | |||
protected | $identity |
Methods
Create a process for later exection
Create a file with the given content at the given destination on the server
Download a file from the given source on the server to the given file
Details
__construct($path, $executor)
No description
isLocal()
No description
getPath()
No description
getServer()
No description
setSSHItentityFile($filename)
No description
exec(string $command, $options = array())
Execute a command on the relevant server
Process
createProcess(string $command, $options = array())
Create a process for later exection
upload($source, string $dest)
Upload a file to the given destination on the server
uploadContent(string $content, string $dest)
Create a file with the given content at the given destination on the server
download(string $source, string $dest)
Download a file from the given source on the server to the given file
bool
exists(string $file = null)
Returns true if the given file or directory exists
writeFile($file, $content)
Create the given file with the given content
unlink(string $file)
Remove a file or folder from the webroot's server