-
Notifications
You must be signed in to change notification settings - Fork 806
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 client symbolic link dereferencing (readlink support for linux) #3335
Comments
Wouldn't this mean an awful lot of server-side duplication and lost organization for those of us who use symlinks instead of |
Yes, absolutely. Copying refs from the discussion. Summing up.
As it turns, Syncing as a reference might be more useful
So I am closing this to focus on #250 https://help.nextcloud.com/t/symbolic-link-support/220/25
.
...
|
@basos9, shouldn't this have been closed as not planned rather than https://github.com/nextcloud/desktop/issues?q=is%3Aissue+is%3Aclosed+reason%3Acompleted? |
This comment was marked as resolved.
This comment was marked as resolved.
@RokeJulianLockhart: I moved the post to #250 where I felt it was more appropriate. You can find it along with the relevant comments/conversation there. |
Add support for client symbolic link de referencing.
REFERENCES
Here follows a use case description of an upload and download scenario.
UPLOAD
When the client (uploader) encounters a symlink (in a platform that supports this and also the platform client support this), the client would sync the contents.
For the sake of example lest say that I create the directory dir-LNK (witch points to /data/dir). The client will sync a directory named dir-LNK (without anything on the server to denote this is/was a symlink)
DOWNLOAD
This was the first client (uploader lets say) scenario. Now, when a new client (downloader) registers to sync with this folder, a normal sync should occur, agnostic of symlinks. More specifically, there are two possibilities:
create directory named dir-LNK inside the nextcloud root.
I create a symlink in the nextcloud root dir-LNK which points to /externalstorage/dir
When sync begins, just read the conents for dir-LNK and do the sync (i.e. do not treat symlink specifically
So in general, we do not treat symlinks specifically when they exist, except for the case when the link is broken, when we print an error and ignore the resource. This means that there is no need to ever write a symlink. In other words all the symlink hassle is a client issue. The server is agnostic of symlink.
The text was updated successfully, but these errors were encountered: