GC_Filesystem_FTPext::getchmod()
最后更新于:2021-11-27 18:46:33
GC_Filesystem_FTPext::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-ftpext.php
public function getchmod( $file ) {
$dir = $this->dirlist( $file );
return $dir[ $file ]['permsn'];
}