home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16178 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.3 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: MatchFirst/MatchNext questions...
  5. References: <BxzsH4.A8y@cantua.canterbury.ac.nz>
  6. Message-ID: <paulk.2b22@terapin.com>
  7. Date: 21 Nov 92 07:45:24 PST
  8. Organization: BBS
  9. Lines: 20
  10.  
  11. > trouble with the pattern matching routines MatchFirst and
  12. > MatchNext.  I seem to get some quite wierd stuff back from them at
  13. > times (garbage file names etc).  I'm a bit stumped by this, and
  14. > wondered if it may be due to my program moving/creating/deleting
  15. > files within pattern matching.  What I wish to know is are all file
  16. > operations legal during pattern matching (ie can I create a new
  17. > file as a result of each MatchNext call, for example).
  18.  
  19. I'd say avoid this.  I remember noticing that the 1.x Ram-Handler
  20. filesystem would lose its place in ExNext scans if you renamed files
  21. in the directory during a scan ... I think that has to be considered
  22. a not-really-safe operation.
  23.  
  24. Now this SHOULD be safe, or else the filesystem can misbehave when
  25. two perfectly correct programs both happen to access the same
  26. directory at the same time.  But apparently there are times when some
  27. filesystems are not bulletproof.
  28.  
  29. I have no idea whether there is any such problem with the v37 rom
  30. filesystem and MatchNext.
  31.