Replies: 6 comments 3 replies
-
Right now for simplicity MuWire resolves all symlinks or windows shortcuts and only shares the target file. There have been requests to change that behavior, and I think it should change, but it would be a major change and it needs to be analyzed carefully. To add an option whether to follow symlinks is easy, but the user would have to re-index their library every time they change that setting. So for backwards-compatibility the default setting would be to follow symlinks. Regarding downloading, the download request is done by file hash, so the user would not download the same file more than once. |
Beta Was this translation helpful? Give feedback.
-
There are two general ways of handling this that I can think of at the moment: A) Just stop resolving symlinks, no other changes.
Cons:
B) Make MuWire aware that the files are symlinks.
Cons:
|
Beta Was this translation helpful? Give feedback.
-
@slrslr I think I have option B working in git. Can you please check out the latest code and test?
@someguy2013 please take a look at this too, if you can't build from git I can prepare a .zip distribution with just these changes. |
Beta Was this translation helpful? Give feedback.
-
@Searinox here is a build with the latest code: https://muwire.com/downloads/MuWire-0.8.10-GitHub102.zip |
Beta Was this translation helpful? Give feedback.
-
I am unsure how to test this properly. I can think of only following: Filter my library and global search for the file that i know is symlink, yes, in both cases it displays correctly the file in the folder even the file is symlink. Previous build do not displayed the file when it was the symlink 👍 Then i have searched for the folder that i know is symlink within my shared directories. This folder/directory links outside of shared directories by the way. Yes, it shown the folder and its contents (2 times) which seems good, except i see following possible issue with this behavior: for example in the past/future i link/ed (without thinking about muwire) from non-sensitive folder(willing to share) to the related folder in different location that contains sensitive data. That is why i have mentioned for consideration not to follow directory symlinks by default, only for example if user explicitly enable Muwire option like: "Follow directory symbolic links pointing outside of the shared directories (risk of accidentally sharing sensitive data)" If you have more ideas how to test, let me know. Thank you |
Beta Was this translation helpful? Give feedback.
-
i have finished testing these and seen no issue except the last thing: un-sharing and then sharing again the symbolic linked directory. Adding it again for sharing caused, numerous pop-up windows. I have copied error here On second attempt, adding that sym. linked folder for sharing caused no error to appear. Un-sharing & sharing sym. link FILE caused no issue (it was file from different directory) |
Beta Was this translation helpful? Give feedback.
-
Hello in Options/Muwire/File sharing i see no option to control how Linux symbolic links (or Windows .lnk ?) are handled.
I see that on my Library tab the folder that contains sym. links does not display these in Muwire, on Library view. I would prefer to see these.
Also when someone is browsing my library, the sym. links are there for the purpose to group related files in the folder even real destination file is somewhere else.
If some user decide to download multiple files from me one is sym. link and other is real file sym. link is linking to, muwire would not download 2 times. I am just saying, not sure how/if muwire works this way.
So my feature idea for considering it to:
Beta Was this translation helpful? Give feedback.
All reactions