wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_is_writable › WordPress Function

Since3.6.0
Deprecatedn/a
wp_is_writable ( $path )
Parameters:
  • (string) $path Path to check for write-ability.
    Required: Yes
See:
Returns:
  • (bool) Whether the path is writable.
Defined at:
Codex:

Determines if a directory is writable.

This function is used to work around certain ACL issues in PHP primarily affecting Windows Servers.


Source

function wp_is_writable( $path ) {
	if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) {
		return win_is_writable( $path );
	} else {
		return @is_writable( $path );
	}
}