Jay Hemnani
2b106fb99b
webdav: fix LocalFileSystem.Copy for directories
...
The walk ignored the path of each entry: it created dstPath for every directory
and copied srcPath to dstPath for every file, so copying a non-empty directory
failed with "open: is a directory". With Overwrite the destination had already
been removed, so its files were lost. Copy each entry to its own path under the
destination.
2026-11-18 21:18:25 +01:00
Krystian Chachuła
e4babc2798
webdav: handle permission errors in ReadDir
2025-08-28 18:25:37 +02:00
krystiancha
b689d5daff
webdav: remove path from LocalFileSystem path errors
...
We don't want to show local paths in error messages.
`os.Is*` calls were replaced with `errors.Is` to also match the new
wrapped error.
2025-03-05 08:48:59 +01:00
Simon Ser
0ae1d1be40
webdav: return 405 when directory already exists for MKCOL
2025-02-18 01:17:34 +01:00
Simon Ser
963b23b8d0
webdav: add support for If-Match/If-None-Match in DELETE
2025-02-14 18:26:04 +01:00
Simon Ser
9d778f4072
webdav: add support for If-Match/If-None-Match in FileSystem.Create
2024-12-09 22:31:59 +01:00
Simon Ser
93fee5bcf0
webdav: don't leave a partially uploaded file behind on error
2024-12-09 09:19:16 +01:00
Thomas Müller
ff8598015d
webdav: respond PUT request with 204/No Content in case the file already existed before putting
2024-04-17 15:51:26 +02:00
Thomas Müller
ffd81465fd
webdav: FileSystem.Create() returns FileInfo and is used to set PUT response headers
2024-04-17 15:16:35 +02:00
Thomas Müller
df447dc627
webdav: change FileSystem.Create to give implementations more control
2024-04-09 12:46:16 +02:00
Simon Ser
80d77a977a
webdav: stop using os errors in FileSystem interface
...
Use NewHTTPError instead.
Closes: https://github.com/emersion/go-webdav/issues/20
2024-02-06 15:23:30 +01:00
Simon Ser
b821d8c1ea
webdav: introduce MoveOptions
2024-01-18 13:28:50 +01:00
Simon Ser
790ebfc5f8
webdav: rename MoveAll to Move
2024-01-18 13:28:50 +01:00
Simon Ser
4493704689
webdav: introduce CopyOptions
2024-01-18 13:28:50 +01:00
Simon Ser
751741d87e
webdav: add/improve doc comments
2024-01-08 14:35:19 +01:00
Simon Ser
d033e09835
webdav: add context to FileSystem
2023-12-19 21:29:54 +01:00
Simon Ser
6d229f4e8a
webdav: add COPY support to server
2020-01-22 13:00:42 +01:00
Simon Ser
f04c1c9421
webdav: add support for ETag to client & server
2020-01-22 12:03:58 +01:00
Simon Ser
3268102d5a
webdav: add MOVE support to server
2020-01-22 11:43:36 +01:00
Simon Ser
83cb67070c
webdav: fix LocalFileSystem.Readdir not returning children
2020-01-22 11:14:09 +01:00
Simon Ser
6eeeccb96e
all: encode hrefs, replace hrefs with path in public API
...
Closes: https://github.com/emersion/go-webdav/issues/14
Closes: https://github.com/emersion/go-webdav/issues/16
2020-01-22 11:07:30 +01:00
Simon Ser
72c96af206
webdav: move recursive PROPFIND to backend
...
Closes: https://github.com/emersion/go-webdav/issues/22
2020-01-22 10:41:20 +01:00
Simon Ser
02d1a7dbe8
webdav: add MIMEType to FileInfo
2020-01-21 22:43:39 +01:00
Simon Ser
c673e7c7e7
webdav: replace os.FileInfo with our own type
2020-01-21 22:36:42 +01:00
Simon Ser
6023eb58a0
webdav: replace File with io.ReadCloser
...
Closes: https://github.com/emersion/go-webdav/issues/17
2020-01-21 22:19:34 +01:00
Simon Ser
e9e1f102de
webdav: add MKCOL support to server
2020-01-21 22:05:59 +01:00
Simon Ser
a2ad695145
webdav: move WebDAV semantics handling to LocalFileSystem
2020-01-21 21:49:54 +01:00
Simon Ser
41b68829e8
webdav: add DELETE support to server
2020-01-21 21:46:01 +01:00
Simon Ser
7d6de88179
webdav: add support for PUT to server
2020-01-21 21:19:44 +01:00
Simon Ser
4e4a5abed2
webdav: remove File.Readdir, add FileSystem.Readdir
...
References: https://github.com/emersion/go-webdav/issues/15
2020-01-21 19:59:41 +01:00
Simon Ser
e851e6e3f1
webdav: remove File.Stat, add FileSystem.Stat
...
References: https://github.com/emersion/go-webdav/issues/15
2020-01-21 19:55:02 +01:00
Simon Ser
326c4b9b6f
internal: add Handler
2020-01-17 11:30:42 +01:00
Simon Ser
ae93da82c1
webdav: add minimal server implementation
2020-01-15 18:21:27 +01:00