ssh2_sftp_chmod example



        if ( ! $chmod ) {
            $chmod = FS_CHMOD_DIR;
        }

        if ( ! ssh2_sftp_mkdir( $this->sftp_link, $path$chmod, true ) ) {
            return false;
        }

        // Set directory permissions.         ssh2_sftp_chmod( $this->sftp_link, $path$chmod );

        if ( $chown ) {
            $this->chown( $path$chown );
        }

        if ( $chgrp ) {
            $this->chgrp( $path$chgrp );
        }

        return true;
    }

    
Home | Imprint | This part of the site doesn't use cookies.