Compare commits

...
2 Commits
Author SHA1 Message Date
fyears 8cca96e138 0.2.5 2021-12-12 01:21:17 +08:00
fyears 804afabdeb rm some webdav logs 2021-12-12 01:20:38 +08:00
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "remotely-save",
"name": "Remotely Save",
"version": "0.2.4",
"version": "0.2.5",
"minAppVersion": "0.12.15",
"description": "Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.",
"author": "fyears",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "remotely-save",
"version": "0.2.4",
"version": "0.2.5",
"description": "This is yet another sync plugin for Obsidian app.",
"scripts": {
"dev": "node esbuild.config.mjs",
+5 -5
View File
@@ -100,12 +100,12 @@ export class WrappedWebdavClient {
} else {
const res = await this.client.exists(`/${this.vaultName}`);
if (res) {
console.log("exits!");
// console.log("remote vault folder exits!");
this.vaultFolderExists = true;
} else {
console.log("not exists, creating");
console.log("remote vault folder not exists, creating");
await this.client.createDirectory(`/${this.vaultName}`);
console.log("created!");
console.log("remote vault folder created!");
this.vaultFolderExists = true;
}
}
@@ -125,7 +125,7 @@ export const getRemoteMeta = async (
) => {
await client.init();
const remotePath = getWebdavPath(fileOrFolderPath, client.vaultName);
console.log(`remotePath = ${remotePath}`);
// console.log(`remotePath = ${remotePath}`);
const res = (await client.client.stat(remotePath, {
details: false,
})) as FileStat;
@@ -165,7 +165,7 @@ export const uploadToRemote = async (
await client.client.putFileContents(uploadFile, "", {
overwrite: true,
onUploadProgress: (progress) => {
console.log(`Uploaded ${progress.loaded} bytes of ${progress.total}`);
// console.log(`Uploaded ${progress.loaded} bytes of ${progress.total}`);
},
});
+1 -1
View File
@@ -1,3 +1,3 @@
{
"0.2.4": "0.12.15"
"0.2.5": "0.12.15"
}