>I figured out my errors with the file list. One of the problems is that
>there is
>an invisible MPW icon the the directory. What is that? The file name is Icon.
>Another problem is that I needed to chomp the fileName before using it. Why
>would I have to do that?
Kathy,
Wiser Perlers than myself could answer whether you need to chomp the
filename in general, but in this case it is because of the file name.
The file's name is actually "Icon\0x0D", i.e., the carriage return in the
last character of the filename. That file is what holds the custom icons
that users can paste onto files and folders, I believe. The name was
probably chosen by Apple so that users would have a very hard time
entering it as the name of one of their documents. Any character can be
in a file path; colon delimits volume:folders:filename, so it is illegal
in a file or folder name, but any other character is possible, even \0x00
(NULL).
Hope that helps,
-Randy
##############################################################
# Thursby Software Systems, Inc. #
# #
# Randy Boring Network Engineer #
# 5840 W. Interstate 20 Suite 100 Arlington, Texas 76017 #
# Phone: 817-478-5070 Fax: 817-561-2313 #
# email: [EMAIL PROTECTED] web: www.thursby.com #
# #
##############################################################