You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
I'am using GCDWebDAVServer method performCOPY:, for copying files or folders.
Everything seems to work good, but when I try to overwrite a folder (already existing) setting the header field: Overwrite: T I get copy error on line: 394
if (![[NSFileManager defaultManager] copyItemAtPath:srcAbsolutePath toPath:dstAbsolutePath error:&error]) {
return [GCDWebServerErrorResponse responseWithClientError:kGCDWebServerHTTPStatusCode_Forbidden underlyingError:error message:@"Failed copying \"%@\" to \"%@\"", srcRelativePath, dstRelativePath];
}
I'am using
GCDWebDAVServer
methodperformCOPY:
, for copying files or folders.Everything seems to work good, but when I try to overwrite a folder (already existing) setting the header field:
Overwrite: T
I get copy error on line: 394so it returns
forbidden
error.As stated in Apple documentation
I think before attempt the copy you should delete the destination folder if already exists, like you did for move method.
Let me know if you have the same problem and how to solve, maybe (client side) I need to request a file delete, then retry the copy.
The text was updated successfully, but these errors were encountered: