Created
August 13, 2011 07:12
-
-
Save kyl191/1143558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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