-
Notifications
You must be signed in to change notification settings - Fork 54
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
Mounting files #123
Comments
Hey, and thanks for trying copyparty :> Since you're asking, you've probably noticed that copyparty currently prohibits creating multiple volumes which point to the same filesystem location. Unfortunately I don't think that will be healthy to change, but I can think of some other approaches which might be acceptable. I've started playing with the idea of adding an option ( Right now, the only approach I can think of is to use symlinks on the OS level. On either linux or macos, you could You're probably familiar with symlinks already, but I left a full explanation in case somebody else isn't :> And btw, it's possible to create symlinks on windows as well, I'm just iffy on the details. Not sure when I'll get a chance to take a closer look at the |
At least for my usecase, I think symlinks will do the trick -- maybe a way to create them from the web interface? |
Right, so your usecase is a bit more granular, and definitely not the kind of stuff you'd want to be doing in config-files... Still, I may have some good news -- it's complicated :-) As long as we're talking about single files, then this is currently possible, assuming you first enable file deduplication. If you copy a file and paste it somewhere else, then this creates a symlink to just that file. But, note that if the first file is deleted through the copyparty UI, then the second file will survive with the initial contents. And, again assuming that dedup is enabled, It is also possible to copy-and-paste an entire folder using the UI -- let's say "dir1" to "dir2". That will create the same folder structure in the new location, which will contain symlinks to all of the files in dir1. But the same thing applies here; if you later add or remove any files inside dir1, then these changes will not apply to dir2. Right now, there is no way to use the UI to create symlinks if the dedup feature is not enabled. I'm not opposed to adding this if people would find it useful -- it would just be a bit of a headache to work it into the UI in a way that is somewhat intuitive :-) But, when it comes to creating "regular" symlinks, where the new folder is just a living mirror of the original one, then I'm afraid that there is currently no plans to add this... I am worried that this would become a big source of confusion, and could easily cause people to share things they didn't intend to. It has been discussed before in #46 and more recently #115 , but to summarize:
Basically I'm actively trying to keep copyparty as close as possible to the server's filesystem -- a quick glance at the volume config and the server filesystem should always tell, without a doubt, what a visitor would be able to access. But I'm also worried that I'd fuck up the code for anything more fancy than this :-P I hope this isn't too much of an inconvenience! Though, if you mention some practical examples, then maybe that can spur some cool ideas for how we could get it to work the way you want :> |
I believe I missed the dedupe feature, that will be very useful, thanks! Looking at the shadowing feature, I would say that it should probably point to For shadowing, creating a shortcut from edit: typo |
I think it would be nice to have the ability to mount files (or folders), so that they would be accessible in multiple locations through the web GUI. I used go-drive before this, which had the ability to do that. It's very useful for things like screenshots, where it might fit into multiple folders.
The text was updated successfully, but these errors were encountered: