if folder exists

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests