Skip to content

fs.accessSync() with W_OK throws EPERM for directories in Windows #1397

@gromnitsky

Description

@gromnitsky

iojs 1.6.4 x86 under Windows 8.1 64 bit

> fs.accessSync(os.tmpDir(), fs.W_OK)
Error: EPERM: operation not permitted, access 'C:\Users\alex\AppData\Local\Temp'

The same check for a directory works fine in Linux:

> fs.accessSync(os.tmpDir(), fs.W_OK)
undefined

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