GC_Filesystem_SSH2::getchmod()

最后更新于:2021-11-27 20:16:06

GC_Filesystem_SSH2::getchmod( string$file)

Gets the permissions of the specified file or filepath in their octal format.

参数

$file

(string) (Required) Path to the file.

响应

(string) Mode of the file (the last 3 digits).

源文件

文件: gc-admin/includes/class-gc-filesystem-ssh2.php

	public function getchmod( $file ) {
		return substr( decoct( @fileperms( $this->sftp_path( $file ) ) ), -3 );
	}