If your filesystem is not case sensitive, then -f should just work with the upper case names, if your filesystem is case sensitive, and the case from the database doesn't match what is on the filesystem, then you don't have a file with that name.
If your filesystem is case sensitive, and you still have to do this, you will have to break filename up into parts, search through each directory from the root, and look to see if any of the directories along the way match the one you are looking for (probably by converting the argument and the directories into the same case using uc() or lc().)
You are likely to get more help here though if you post some of the things you have tried, instead of just asking for someone to do it for you.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Finding if files exist when names randomly have letters in both upper and lower cases
by jasonk
in thread Finding if files exist when names randomly have letters in both upper and lower cases
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |