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.
Normal behavior:
SSHFS behavior:
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-builderwithin 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.