Feature: Delete produce exception when readonly.

Refactoring: Don't Repeat You Self
File.GetAtributes()