There is no warning about deleting a read-only file. What about checking for read-only files here?