Skip to content
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

Exposing an existing directory #44

Open
mcsilver opened this issue Feb 11, 2024 · 5 comments
Open

Exposing an existing directory #44

mcsilver opened this issue Feb 11, 2024 · 5 comments

Comments

@mcsilver
Copy link

mcsilver commented Feb 11, 2024

I want to allow access to an existing directory using webdav, but when I specify the path to that directory as the volume, webdav creates a new data directory in there, and that's where a webdav client can add/edit files. Is it possible to give webdav access to the directory that I specify so that clients can edit files that are already in there?

@chaomifan
Copy link

same issue

@marcovitali
Copy link

I want to allow access to an existing directory using webdav, but when I specify the path to that directory as the volume, webdav creates a new data directory in there, and that's where a webdav client can add/edit files. Is it possible to give webdav access to the directory that I specify so that clients can edit files that are already in there?

You can mount this

/path/to/folder:/var/lib/dav/data

instead of this

/path/to/folder:/var/lib/dav

@mcsilver
Copy link
Author

mcsilver commented Jan 3, 2025

Thank you for the suggestion @marcovitali. For WebDAV end-users, this will suffice. I am hoping to also alleviate both backend people and backend systems from having to content with the data directory, as I have existing directories that I want to expose via WebDAV.

@marcovitali
Copy link

Thank you for the suggestion @marcovitali. For WebDAV end-users, this will suffice. I am hoping to also alleviate both backend people and backend systems from having to content with the data directory, as I have existing directories that I want to expose via WebDAV.

I have an existing folder and no data folder. The data folder is inside the container, not in your file system.
I did not need to change anything in my file system, if that is your concern.

@mcsilver
Copy link
Author

mcsilver commented Jan 3, 2025

You're right, mounting as you suggested above does work! Thank you for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants