A WordPress-centric search engine for devs and theme authors



wp_is_writable ›

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:

Determine 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 );
}