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

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