mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
nextcloud address
This commit is contained in:
parent
7ca2d19255
commit
be4a2d3271
@ -324,8 +324,17 @@ export class FakeFsWebdav extends FakeFs {
|
|||||||
await this._checkPartialSupport();
|
await this._checkPartialSupport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <server>/remote.php/dav/files/<userid>
|
||||||
|
* => <server>/remote.php/dav/uploads/<userid>
|
||||||
|
*/
|
||||||
_getnextcloudUploadServerAddress = () => {
|
_getnextcloudUploadServerAddress = () => {
|
||||||
const s = this.webdavConfig.address.split("/");
|
let k = this.webdavConfig.address;
|
||||||
|
if (k.endsWith('/')) {
|
||||||
|
// no tailing slash
|
||||||
|
k = k.substring(0, k.length-1);
|
||||||
|
}
|
||||||
|
const s = k.split("/");
|
||||||
if (
|
if (
|
||||||
s.length > 3 &&
|
s.length > 3 &&
|
||||||
s[s.length - 3] === "dav" &&
|
s[s.length - 3] === "dav" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user