We have a series of directories that various applications use for keeping track of assets (graphics). Some of these systems copy these assets into the directories (either via an NFS mount or an AFP mount) using a variety of file copy mechanisms (e.g. AppleScript calling 'do shell script ("ditto...")' or a shell script using 'cp' or 'mv'.)
What we are seeing is that other 'consumer' applications don't see the new files arrive. We've tried various hacks to try to get the file system to update (e.g. 'ls -R' to the enclosing file's directory works sometimes). We've added all kinds of retry logic and timers to keep trying (we know the file is there - we can see it - either in the Finder or a terminal window 'ls' listing), but even after 30 minutes some of the applications still can't see the file (programatically - Java file utils, AppleScript 'try myFile as alias end try').
Anyone know of a way to force the file system to update itself so that applications can see what the rest of the world is seeing?