Bill Sanford wrote: > I have a function that uses "usr scanfolder" to read the contents of a > folder. This works fine except when something is added to or deleted > from > the folder while my app is running. > > After the change of the folder contents takes place, if my app calls > "usr > scanfolder" again, the change is not reflected in what is returned by > "usr > scanfolder". > > I thought that maybe PBFlushVolAsync would update the folder > information, > but this doesn't help either. > > If I quit and re-launch my application, then it correctly recognized > the > changes to the folder. > Does anyone have any ideas? Is this a bug in OSX? Quite possibly it is a bug in PBGetCatInfoSync (which is used by ScanFolder in the guise of GETCATINFO). You could try adapting "ScanFolder FSRef" on the FB4 CD Examples to your needs. It uses a different method --FSGetCatalogInfoBulk instead of the antiquated PBGetCatInfoSync --- and is unlikely to suffer from the same bug. Note that you will have to comment out the definition of FSpMakeFSRef in the example file. Robert P.