docs: def _restore_file_attributes(self):
          # type: (Descriptor) -> None
          """Restore file attributes for file
          :param Descriptor self: this
          """
          if (not self._restore_file_properties.attributes or
                  self._ase.file_attributes is None):
              return
          # set file uid/gid and mode
          if blobxfer.util.on_windows():  # noqa
              # TODO not implemented yet
              pass
          else:
              self.final_path.chmod(int(self._ase.file_attributes.mode, 8))
              if os.getuid() == 0:  # noqa
                  os.chown(
                      str(self.final_path),
                      self._ase.file_attributes.uid,
                      self._ase.file_attributes.gid
                  )