Add to check the file permission before mm_file access a file.