Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint that Cryptomator is case-sensitive #13

Open
jeffrson opened this issue May 9, 2020 · 2 comments
Open

Add hint that Cryptomator is case-sensitive #13

jeffrson opened this issue May 9, 2020 · 2 comments

Comments

@jeffrson
Copy link

jeffrson commented May 9, 2020

Description

When files on a cryptomator drive (via Dokany on an internal NTFS drive) are accessed through a name with differing case representation they cannot be found.

System Setup

  • Operating system and version: Windows 10
  • Cryptomator version: 1.5.3
  • Drive: [Dokany/FUSE/WebDAV] Dokany

Steps to Reproduce

I tried NodeJS, but this shouldn't matter at all:

> let fs=require("fs")
> fs.writeFileSync("test.dat", "test")
> fs.readFileSync("test.dat")
<Buffer 74 65 73 74>
> fs.readFileSync("Test.dat")
Uncaught Error: ENOENT: no such file or directory, open 'Test.dat'
    at Object.openSync (fs.js:461:3)
    at Object.readFileSync (fs.js:364:35) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'Test.dat'
}

Expected Behavior

Well, files should be found and opened without error.

Actual Behavior

There's an "ENOENT" error.

Reproducibility

Always

@jeffrson jeffrson changed the title Cryptomator 1.5.3 should ignore file name casing Windows but doesn't Cryptomator 1.5.3 should ignore file name case on Windows but doesn't May 9, 2020
@overheadhunter
Copy link
Member

Cryptomator is case-sensitive. This is inevitable due to deterministic filename encryption (see explanation in cryptomator/cryptomator#622).

There is the possibility to add a case-insensitive mode, which will take O(n*m) instead of O(1) for every file operation that needs to know the name (with n being the number of items in a directory for each element in a path with m elements). This is less than desirable.

@jeffrson
Copy link
Author

jeffrson commented May 10, 2020

Since this is quite unexpected in Windows I see a need for documenting this emphasized. It clearly limits straight use of applications on Cryptomator drives.

I really had looked for this information in the community and documentation sites, especially FAQ.

@overheadhunter overheadhunter transferred this issue from cryptomator/cryptomator May 10, 2020
@overheadhunter overheadhunter changed the title Cryptomator 1.5.3 should ignore file name case on Windows but doesn't Add hint that Cryptomator is case-sensitive May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants