GC_Filesystem_ftpsockets::is_file()
最后更新于:2021-11-27 19:21:31
GC_Filesystem_ftpsockets::is_file( string$file)Checks if resource is a file.
参数
- $file
-
(string) (Required) File path.
响应
(bool) Whether $file is a file.
源文件
文件: gc-admin/includes/class-gc-filesystem-ftpsockets.php
public function is_file( $file ) {
if ( $this->is_dir( $file ) ) {
return false;
}
if ( $this->exists( $file ) ) {
return true;
}
return false;
}