final public function chmod($path,
$mode,
$recursive = FALSE
) { if (!
($this instanceof ChmodInterface
)) { throw new FileTransferException('Unable to change file permissions'
);
} $path =
$this->
sanitizePath($path);
$path =
$this->
fixRemotePath($path);
$this->
checkPath($path);
$this->
chmodJailed($path,
$mode,
$recursive);
} /**
* Creates a directory.
*
* @param string $directory
* The directory to be created.
*/
final public function createDirectory($directory) { $directory =
$this->
fixRemotePath($directory);
$this->
checkPath($directory);