Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Keep a junction to a network share leading there

Fei24112b742f9b3632
diff --git a/app/src/move-data.mjs b/app/src/move-data.mjs
index d7129f62..9d666499 100644
--- a/app/src/move-data.mjs
+++ b/app/src/move-data.mjs
@@ -51,7 +51,7 @@ const escaped = text => text.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&')
// there, as an absolute link. Windows gives a junction's target with \\?\, and makes only
// junctions, which hold absolute paths, without special rights.
async function relink(source, path, roots, to) {
- const text = (await readlink(source)).replace(/^\\\\\?\\/u, '')
+ const text = (await readlink(source)).replace(/^\\\\\?\\UNC\\/u, '\\\\').replace(/^\\\\\?\\/u, '')
const written = resolve(dirname(source), text)
// Through another link the target can lead inside the old folder too.
const physical = await realpath(written).catch(() => written)