lychee/php/helpers/hasPermissions.php
2016-01-30 23:03:43 +01:00

13 lines
248 B
PHP

<?php
function hasPermissions($path) {
// Check if the given path is readable and writable
// Both functions are also verifying that the path exists
if (is_readable($path)===true&&is_writeable($path)===true) return true;
return false;
}
?>