monitor file or directory