From 5dbff4af41e5794aff8bf7d833b47c275250305e Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 13 Jun 2026 11:45:21 +0000 Subject: [PATCH] js: mkdir: cd if existed; closes #1512 --- copyparty/web/browser.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 6622c5c1..87f96954 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -8985,6 +8985,13 @@ var msel = (function () { return; } + if (this.status == 405) { + tb.value = ''; + sf.textContent = 'already existed'; + treectl.goto(this.vp + uricom_enc(this.dn) + '/', true); + return tree_scrollto(); + } + xhrchk(this, L.fd_xe1, L.fd_xe2); if (this.status !== 201) {