webdav

坚果云

As of 01/04/2023. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/463081/1169710/webdav.js

Autor
Mixier
Verzija
0.0.1.20230401232632
Napravljeno
01/04/2023
Ažurirano
01/04/2023
Size
5,71 КБ
Licenca
Nije dostupno

let dav = new webdav("", "")
dav.ExistsFile('config').then(
async r => {
if (!r) {
await dav.NewFolder('config')
}
console.log(await dav.UploadFiles('config', 'yandex.json', "{data:[1,2,3]}", "json"));
console.log("down", await dav.DownloadFile('config', 'yandex.json'));
}
)