GC_Filesystem_SSH2::is_writable()

最后更新于:2021-11-27 20:32:07

GC_Filesystem_SSH2::is_writable( string$file)

Checks if a file or directory is writable.

参数

$file

(string) (Required) Path to file or directory.

响应

(bool) Whether $file is writable.

源文件

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

	public function is_writable( $file ) {
		// PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner.
		return true;
	}