|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-06 10:44 UTC] jani@php.net
[2009-03-07 00:02 UTC] yorianbenjamin at hotmail dot com
[2009-03-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 09:00:01 2025 UTC |
Description: ------------ When using mkdir() to create a directory recursively it creates directories which can not be removed with ftp. However when I create a single directory with mkdir it is removable. Reproduce code: --------------- <?php mkdir('test_dir2', 0777, FALSE); mkdir('test_dir3', 0777, TRUE); mkdir('test_dir4/blaat', 0777, TRUE); ?> Expected result: ---------------- I expected that I could easily delete all the directories using ftp. Actual result: -------------- Deleting the directories (using ftp): test_dir2 and test_dir3 worked as I expected it. Trying to delete blaat or test_dir4 returned an error: [23:25:38] 550 blaat: Permission denied (or in the case of the other directory: test_dir4: permission denied) Someone else who tested it on his system replied: This did the same thing on my machine. I had to be a superuser in order to delete it at the command line (which is essentially what you would need to do over FTP). I have no idea why that would happen.