GC_Filesystem_Direct::getchmod()
最后更新于:2021-11-27 18:03:27
GC_Filesystem_Direct::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-direct.php
public function getchmod( $file ) {
return substr( decoct( @fileperms( $file ) ), -3 );
}