Skip to content

Make the various occurrences of ftype consistent, and aligned to ::File.ftype #532

@hainesr

Description

@hainesr

This discussion started in #530 with @fbacall.

We should be consistent with ::File.ftype on what we return for entries in a Zip archive.

Notes:

  • ::File.ftype returns a string: 'file', 'directory' or 'link' (others, e.g. 'socket' aren't relevant for Zip files)
  • Zip::Entry.ftype returns a symbol: :file, :directory or :symlink
  • Zip::FileSystem::File.ftype returns a string, but returns 'file' if the entry is a symlink
  • Zip::FileSystem::File::Stat.ftype returns a string, and an error (Unknown file type) if the entry is a symlink

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy