x/net/webdav: FileSystem interface should include CopyFile #38974
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
WebDAV requires support for the
COPY
method (defined in RFC 2518 section 8.8). Go's WebDAV server implementation ingolang.org/x/net/webdav
implements it, however the current implementation simply callsFileSystem.OpenFile
on the source and destination and usesio.Copy
to pipe the content.While this is fine in some cases, I really think that the user should be able to override / implement this by adding a
CopyFile
method to theFileSystem
interface. Two major reasons I see:The text was updated successfully, but these errors were encountered: