This if still doesn’t do right there is one other thing you might look at. There is always the possibility you are using illegal characters in File Names, folder names or directory names. System previous to version OS X.7 You could name File/Folder/Directories anything you wanted even to using certain character now forbidden
Here is the list:
Some of the Forbidden Characters are:
Numbers before names, Superscript/Subscripts.