Removed static method setPermissions for File.