Lines Matching refs:path
59 function icacls_set($path, $mode, $perm) {
62 $path_escaped = '"' . $path . '"';
152 function delete_file($path) {
153 icacls_set($path, PHPT_ACL_GRANT, PHPT_ACL_FULL);
154 if (is_file($path)) {
155 unlink($path);
157 echo "delete_file: '$path' is not a file\n";
162 function delete_dir($path) {
163 if (is_dir($path)) {
164 icacls_set($path, PHPT_ACL_GRANT, PHPT_ACL_FULL);
165 rmdir($path);
167 echo "delete_dir: '$path' is not a directory\n";
172 $path = __DIR__ . '/a.txt';
173 create_file($path, PHPT_ACL_NONE);
174 if (!is_writable($path)) {
179 delete_file($path);
181 $path = __DIR__ . '/a.txt';
182 create_file($path, PHPT_ACL_READ);
183 if (!is_writable($path)) {
188 delete_file($path);
190 $path = __DIR__ . '/adir';
191 create_dir($path, PHPT_ACL_READ);
192 if (!is_writable($path)) {
197 delete_dir($path);