WordPress Version: 6.1
/**
* Determines if a directory is writable.
*
* This function is used to work around certain ACL issues in PHP primarily
* affecting Windows Servers.
*
* @since 3.6.0
*
* @see win_is_writable()
*
* @param string $path Path to check for write-ability.
* @return bool Whether the path is writable.
*/
function wp_is_writable($path)
{
if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
return win_is_writable($path);
} else {
return @is_writable($path);
}
}