in reply to Finding if files exist when names randomly have letters in both upper and lower cases
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! |
|---|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding if files exist when names randomly have letters in both upper and lower cases
by jasonk (Parson) on Jun 22, 2005 at 14:27 UTC | |
by merlyn (Sage) on Jun 22, 2005 at 16:35 UTC | |
|
Re^2: Finding if files exist when names randomly have letters in both upper and lower cases
by merrymonk (Hermit) on Jun 22, 2005 at 14:31 UTC |