Added setPermissions method for File class