Skip to content

mkdir on existing directory fails with wrong error (access denied) #472

Description

@CherryDT

Normal behavior:

C:\Users\david>mkdir Temp

C:\Users\david>mkdir Temp
A subdirectory or file Temp already exists.

SSHFS behavior:

U:\test>mkdir Temp

U:\test>mkdir Temp
Access denied.

The issue is that this can cause issues with some software that handles "already existing" as soft, expected error but "access denied" as hard error.

For example, trying to run electron-builder within a volume mounted via SSHFS always fails with a permission error trying to create a directory, because it creates that directory multiple times as part of the process and normally the attempts beyond the first result in "already existing" which is handled automatically, but with "access denied" it stops the whole operation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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