class Zip::FileSystem::ZipFsFile::ZipFsStat

def ftype

def ftype
  if file?
    'file'
  elsif directory?
    'directory'
  else
    raise StandardError, 'Unknown file type'
  end
end