GC_Filesystem_ftpsockets::getchmod()
最后更新于:2021-11-27 19:10:06
GC_Filesystem_ftpsockets::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-ftpsockets.php
public function getchmod( $file ) {
$dir = $this->dirlist( $file );
return $dir[ $file ]['permsn'];
}