WP_Filesystem_SSH2::is_writable
Checks if a file or directory is writable.
Method of the class: WP_Filesystem_SSH2{}
No Hooks.
Returns
true|false. Whether $path is writable.
Usage
$WP_Filesystem_SSH2 = new WP_Filesystem_SSH2(); $WP_Filesystem_SSH2->is_writable( $path );
- $path(string) (required)
- Path to file or directory.
Changelog
| Since 2.7.0 | Introduced. |
WP_Filesystem_SSH2::is_writable() WP Filesystem SSH2::is writable code WP 6.8.3
public function is_writable( $path ) {
// PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner.
return true;
}