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