cryptomator / cryptomator/android
Symlinks not working
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 216
- PR merge metrics
- No merged PRs in 30d
Description
### Please agree to the following
- [X] I have searched [existing issues](https://github.com/cryptomator/android/issues?q=) for duplicates
- [X] I agree to follow this project's [Code of Conduct](https://github.com/cryptomator/android/blob/develop/.github/CODE_OF_CONDUCT.md)
### Summary
A symlink to a file is always seen as a directory (symlink to directory works fine).
### System Setup
```markdown
- Android: 13
- Cryptomator: 1.10.3
- Xiaomi Redmi Note 11 phone (HyperOS 1.0.3)
```
### Cloud Type
Google Drive
### Steps to Reproduce
1. With Linux ln, make a symbolic link to a file in the vault (V8 format, Cryptomator Windows 1.14), using either an absolute or relative target pathname;
2. Access the vault in Google Drive from CM Android;
3. CM sees all symbolic links as directories and linked files can't get accessed.
### Expected Behavior
CM Android distinguishes between symbolic link to files and symbolic links to dirs, just like Windows or Linux Desktop version; `mklink` in Windows can work
### Actual Behavior
CM Android does not display symlinked files as such, but as directories; `mklink` in Windows can't create symlinks due to an unknwon device I/O error.
### Reproducibility
Always
### Relevant Log Output
```shell
-
```
### Anything else?
Created symlinks inside the vault work fine both in Linux and Windows.
*04/11/24 UPDATE*: symlinks to directories does not work properly, too: in fact, CM Android requires a `dir.c9r` file in the symlink directory (where `symlink.c9r` file resides), but this is not required by Desktop editions, whose sanity check signals such situation as an error ("ambiguity" between symlink/directory). Discovered while developing my [pycryptomator](https://github.com/maxpat78/pycryptomator) app - putting a dir.c9r file in the symlink directory by hand let CM Android interpret and resolve correctly the symlink to the target directory, but this is not the expected behavior!
Contributor guide
Assessment
This issue has not been assessed yet.