| From: | David Thiede |
| Date: | 18 Oct 2000 at 20:10:53 |
| Subject: | Re: AMIOPEN: Extensions and Types |
They both would work but there might/will be a big difference in
speed. In most filesystems checking a file name for certain patterns
mean only having to open the directory. check the file itself would mean
opening each file could get very expensive timewise when you are talking
about thousands of files. I am dealing with such a directory right now and
would hate to have to open each file to see if they are the ones that I
want.
dave
On Wed, 18 Oct 2000, Jim
Peters wrote:
> On Tue, Oct 17, 2000 at 05:34:38PM -0700, John Harris wrote:
> > You can build the filetype info into the filename using some kind of naming
> > convention at the beginning or end of the 'regular' filename. At the GUI
> > level, this can/should be hidden and/or turned into filetype icons, but it
> > would still be accessible for shell pattern-matching.
>
> This is an interesting suggestion. I wonder how MacOS X handles it
> now it's built on UNIX. Does the Mac 4-byte type-tag get encoded into
> .ABCD on the end of the filename ?
>
> I also like someone else's suggestion of using `find . -type gif' as
> an alternative to `*.gif' if all of the type-information is going to
> be hidden away in the filesystem separate from the filenames.
>
> Jim
>
>
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html