if folder exists

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Post by swirlee » Tue Jul 15, 2003 6:21 pm

As far as PHP is concerned, a folder is just another file. So file_exists() should work fine, but if you want to make sure it's a directory, use is_dir().

I don't know that I'll ever forgive Apple for obfuscating the directory/folder concept. Of course, the folder model makes more sense, but I'm still bitter.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests