Fix file conflict in copy api is not handled

This commit is contained in:
Ming Ming 2021-10-08 15:02:26 +08:00
parent 07e2aba673
commit d53590522f

View file

@ -172,6 +172,11 @@ class FileWebdavDataSource implements FileDataSource {
throw ApiException(
response: response,
message: "Failed communicating with server: ${response.statusCode}");
} else if (response.statusCode == 204) {
// conflict
throw ApiException(
response: response,
message: "Failed communicating with server: ${response.statusCode}");
}
}