Add IsFileWrite for a fine grain check on file modifications