displayFileInfo() now correctly detects and shows write protection.
displayFileInfo() now correctly detects and shows write protection.