android icon indicating copy to clipboard operation
android copied to clipboard

Symlinks not working

Open maxpat78 opened this issue 1 year ago • 1 comments

Please agree to the following

Summary

A symlink to a file is always seen as a directory (symlink to directory works fine).

System Setup

- 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

-

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 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!

maxpat78 avatar Oct 26 '24 14:10 maxpat78