mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-08-18 21:54:56 +02:00
🔨 Fix for new version of webdav lib
This commit is contained in:
parent
8ecf69c83e
commit
4c96f698eb
@ -87,7 +87,7 @@ class WebdavTools {
|
|||||||
await this.client.createDirectory(path);
|
await this.client.createDirectory(path);
|
||||||
logger.debug(`Path ${path} created.`);
|
logger.debug(`Path ${path} created.`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response.status === 405) logger.debug(`Path ${path} already exist.`);
|
if (error.status === 405) logger.debug(`Path ${path} already exist.`);
|
||||||
else logger.error(error);
|
else logger.error(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user