home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 671 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.4 KB  |  57 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: peer-news.britain.eu.net!liv!lucs!news
  3. From: fish@csc.liv.ac.uk (S.E. Morris)
  4. Subject: Re: Protection bits
  5. Sender: news@csc.liv.ac.uk (News Eater)
  6. Message-ID: <DKyoqJ.Lnu@csc.liv.ac.uk>
  7. Date: Wed, 10 Jan 1996 10:49:30 GMT
  8. References: <john.hendrikx.44q1@grafix.xs4all.nl>
  9. Nntp-Posting-Host: fish@bobr.csc.liv.ac.uk
  10. Organization: Computer Science, University of Liverpool, UK
  11. X-Newsreader: knews 0.9.3
  12.  
  13. In article <john.hendrikx.44q1@grafix.xs4all.nl>,
  14. john.hendrikx@grafix.xs4all.nl (John Hendrikx) writes:
  15. > In a message of 06 Jan 96 Michael Van Elst wrote to All:
  16. >  >> I'd like to see a new set of flags, or somekind of ID stored with each
  17. >  >> file which tells you the filetype.  In other words taking the 'e' and 's'
  18. >  >> bit concepts one step further.
  19. >  MVE> With flags being pretty independent of the data in the file it is hard
  20. >  MVE> to make them a file type ID.
  21. > Maybe the filesystem could be extended with somekind of hook which sets the
  22. > file-type correctly by looking at the first 512-bytes of the file when it is
  23. > first written/modified.  It would be an automatic FileID-ing system which could
  24. > be extended with new FileID's which the file system could recognise and store
  25. > as a FileID long in the fileinfoblock.
  26. > When I come to think of it this doesn't seem all that hard to do and it would
  27. > probably not even slow down the filesystem.  I mean, taking a peek at the first
  28. > 512 bytes as it is written shouldn't be that hard.  The only trouble is that
  29. > 512 bytes might not be sufficient to make a FileID...
  30. > This would make doing a directory with FileID's and with only IFF files in them
  31. > really fast, like on the MAC's (even though they use an even more extensive,
  32. > but unfortunately not always reliable system (you sometimes need to set the
  33. > FileType correctly yourself...)).
  34.  
  35. Why not store this infomation in the file's .info file?
  36.  
  37. This kind of auto-recognition of files isn't a feature you would
  38. expect a command line shell to have --- it's a bit too high 
  39. level for that IMHO.
  40.  
  41. But the GUI is intended as a 'high-level' interface which goes out
  42. of it's way to be friendly and helpful (supposedly!).  So storing
  43. a field in the .info with the file type would be ideal.  The Workbench
  44. *has* to load the .info files anyway --- so the speed descrease would
  45. be practically non-existant!
  46.  
  47. Just a thought.... :->
  48.  
  49. -FISH-   ><>
  50.  
  51.