haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
11.91k stars 1.52k forks source link

MacOS resource forks are not preserved #2165

Open scotthillock opened 5 years ago

scotthillock commented 5 years ago

MacOS stores metadata, or sometimes actual data in the case of font files, in the resource forks of files. Resource forks are not preserved when syncing with the Seafile mac client. Mac font files show as 0 Bytes in the web interface, and subsequently download as corrupted files.

I assume this applies to NTFS file streams, and linux xattr also.

scotthillock commented 2 years ago

The fuse mount command for seadrive on macos includes the option of "autoxattr", which makes the client create ".*" files to preserve resource forks and extended attributes. However, in sync-mgr.c, and maybe others, there is an exclusion added to the ignore_table variable to not sync these files.

Can this behavior be altered to include these files as an option in the seadrive client settings?