Skip to content

Instantly share code, notes, and snippets.

@kyl191
Created August 13, 2011 07:12
Show Gist options
  • Save kyl191/1143558 to your computer and use it in GitHub Desktop.
Save kyl191/1143558 to your computer and use it in GitHub Desktop.
<?php
print dirname(__FILE__).'\n';
function mk($path){
print 'tpath = ' .$path . '\n';
if (!file_exists($path))
if (mkdir($path, 0777))
print 'Success!\n';
else
print 'Fail!\n';
}
umask("0000");
mk("./old_thumbs");
mk("old_thumbs/X");
mk("old_thumbs/X/X");
mk("old_thumbs/"."20101010.jpg");
mk("old_thumbs/"."20101010.jpg"."/X");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment