How to tell if a folder/file is hidden or not?
Moderator: General Moderators
How to tell if a folder/file is hidden or not?
How can I tell if a file/folder is hidden or not? I don't want to show hidden files or folders in an app I've been working on.
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
I wasn't thinking -- a file's hidden property doesn't belong to the file system, but to windows explorer. You could always do some research and hack into the registry via PHP's file API if that's where the property resides (not worth your time, and probably not possible). What you should do is put giant DELETE links next to /windows and /windows32 in your program -- that would solve a lot of problems.
the app gives me/others from the household access to there home "my documents", cant get to win folders or anything else.
i just decided to have it block echo'ing stupid folders like save games, would have been more conveient for the future if it doesnt show hidden folders in the output. ill just have to hard code it in future. thanks anyway
i just decided to have it block echo'ing stupid folders like save games, would have been more conveient for the future if it doesnt show hidden folders in the output. ill just have to hard code it in future. thanks anyway