Skip to content

fs.stat should provide the stats although there is no permission #22577

@NCC1701M

Description

@NCC1701M
  • Version: v8.11.2
  • Platform: Win10 64-bit
  • Subsystem:

If you are calling fs.stat or fs.statSync on an item where you don't have permissions to read the error or respective the exception is of the EPERM / EBUSY type. But this shouldn't be occur on reading the stats of a file or folder it should occur when you try to read the content of the file/folder but not when reading the stats.

Because when you use the Explorer or an other file manager you are able to see the files/folders and their information - you can't enter or open - but you can see the information about it.

This should be supported by node.js as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions