954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

rmdir silly problem

Hello there,

I am trying to make a CMS using wamp.

I made an uploading photos section, and when I try to delete the folder of the photos I get:
Warning: rmdir(C:/wamp/www/site/images/4b4731fda156e) [function.rmdir]: Directory not empty in C:\wamp\www\site\admin\process\delete.php on line 23

Although the directory is empty and I have checked it myself, and used unlink to remove any photos.

Is this a problem because of wamp not allowing this? does it have anything to do with wamp configuration?

And I think its worth knowing that I have changed the permissions using chmod to 0777


Thank you :)

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

are you sure there arent any hidden files?

kireol
Posting Whiz
313 posts since Mar 2008
Reputation Points: 34
Solved Threads: 51
 

yes, I checked it before

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

hmm, I see that the folder size is 7KB no files, no hidden files.. wtf? and it says that there is 1 file.. how come?

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

yeah ive used unlink() too, to delete files... there's no problem... the only error it will generate is when assigning incorrect path. The file you wish to delete does not exist.

vaultdweller123
Posting Pro
554 posts since Sep 2009
Reputation Points: 42
Solved Threads: 75
 

ofcourse it does, otherwise I would have gotten an error no such directory.. its totally something else.

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

my guess is there is a file there.

c:\> cd \your\directory
c:\> Dir /ah (Press Enter)

that will show any hidden files. You may have done this already, but trying to help :)

kireol
Posting Whiz
313 posts since Mar 2008
Reputation Points: 34
Solved Threads: 51
 

what was the permission of the folder? I guess it was not 777
If so Change permissions before delete

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

ei dude i found a solution... the thing is i got tired reading it.. so you read it, this is your problem after.. hehe

http://en.kioskea.net/faq/sujet-793-warning-rmdir-directory-not-empty

vaultdweller123
Posting Pro
554 posts since Sep 2009
Reputation Points: 42
Solved Threads: 75
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: