code: def name(self):
      
      if self._name is None:
        location = getattr(self.path_spec, 'location', None)
        if location is not None:
          self._name = self._file_system.BasenamePath(location)
        else:
          volume_index = apfs_helper.APFSContainerPathSpecGetVolumeIndex(
              self.path_spec)
          if volume_index is not None:
            self._name = 'apfs{0:d}'.format(volume_index + 1)
          else:
            self._name = ''
      return self._name
docs: str: name of the file entry, which does not include the full path.