Support creating new files, and detecting read-only files.