home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!olivea!charnel!sifon!VM1.MCGILL.CA
- From: news@sifon.cc.mcgill.ca
- Newsgroups: comp.sys.mac.programmer
- Subject: File ID questions!
- Message-ID: <20NOV92.22500823.0068@VM1.MCGILL.CA>
- Date: 21 Nov 92 01:50:02 GMT
- Sender: usenet@MUSICA.MCGILL.CA
- Organization: McGill University
- Lines: 20
- Nntp-Posting-Host: 132.206.27.2
-
-
- Hi, all!
-
- I'm writing an INIT/CDEV that is supposed to watch user-specified
- folders for activity (new files, removing files, etc) and take follow-
- up action. I'm trying to code an efficient way of "snapshot"ing the
- folder at regular intervals to detect adn pinpoint file movement.
-
- a) would it be healthy to just maintain a list of file IDs for
- all files within a folder? How would this work for sub-folders? (Since
- one cannot create a file ID for them) IM VI says that the
- PBCreateFileIDRef function "creates a record to hold the file vRefNum
- and directory ID). If I demand large volumes of FileIDs from the system,
- will I be filling up disk directory space? Where is this information
- stored and how efficiently?
-
- b) Is there an easier, more kocher way of keeping track of the
- coming and going of files in specific folders? Any help is appreciated.
-
- CXEO@musica.mcgill.ca
-