Skip to content

Distinguishing between different types of links on Windows #1520

Closed
@oliversalzburg

Description

@oliversalzburg
  • Node.js Version: 8.12.0
  • OS: Windows 10
  • Scope (install, code, runtime, meta, other?): runtime
  • Module (and version) (if relevant): fs

On Windows, when we create a symlink, we are given the options to create a file or directory symlink or a junction. How can I determine if an existing entity is a file or directory symlink or a junction?

stats.isSymbolicLink() will return true for all 3 types and I did not find an API that would provide more detail.

This is in reference to: jprichardson/node-fs-extra#626

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions