waits until a file or directory is changed
