php-ssh icon indicating copy to clipboard operation
php-ssh copied to clipboard

adding chmod in sftp feature

Open GillesCrebassa opened this issue 9 years ago • 1 comments

Hi,

I have added 'chmod' feature on sftp (due after send, to execute script), I don't know the process to pull an update of the code, so it's only in sftp.php:

/**
 * Creates a directory
 *
 * @param  string $filename The filename to resolve
 * @param  int     $mod       The permissions on the new filename
 *
 * @return Boolean
 */
public function chmod($filename, $mod = 0600)
{
    return ssh2_sftp_chmod($this->getResource(), $filename, $mod);
}

Br, Gilles

GillesCrebassa avatar Jul 08 '16 14:07 GillesCrebassa

I am implement this feature and create a pull request. Thank @GillesCrebassa

oanhnn avatar Jul 08 '16 17:07 oanhnn