fix mtime for webdav

This commit is contained in:
fyears
2024-02-25 22:18:14 +08:00
parent 1f4737bfb8
commit 5df06bbed5
7 changed files with 87 additions and 25 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import type {
S3Config,
SUPPORTED_SERVICES_TYPE,
WebdavConfig,
UploadedType,
} from "./baseTypes";
import * as dropbox from "./remoteForDropbox";
import * as onedrive from "./remoteForOnedrive";
@@ -112,7 +113,7 @@ export class RemoteClient {
foldersCreatedBefore: Set<string> | undefined = undefined,
uploadRaw: boolean = false,
rawContent: string | ArrayBuffer = ""
) => {
): Promise<UploadedType> => {
if (this.serviceType === "s3") {
return await s3.uploadToRemote(
s3.getS3Client(this.s3Config!),