Lines Matching refs:dir
98 echo "failed to create dir '$full'\n";
108 function remove_data($id, $dir = NULL)
110 if (!$dir) {
111 $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . $id;
114 if (is_dir($dir)) {
115 $objects = scandir($dir);
118 if (filetype($dir . DIRECTORY_SEPARATOR . $object) == "dir")
119 remove_data($id, $dir . DIRECTORY_SEPARATOR . $object);
121 unlink($dir . DIRECTORY_SEPARATOR . $object);
125 rmdir($dir);
143 if (0 === strpos($id, "dir")) {
149 echo "Item has either to start with \"dir\" or \"file\"";