mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
fix: use junction to create windows symlink
This commit is contained in:
parent
e48fa17910
commit
84dfb582a1
1 changed files with 3 additions and 3 deletions
|
|
@ -28,11 +28,11 @@ async function linkWiki(mainWikiPath, folderName, subWikiPath) {
|
|||
try {
|
||||
await fs.remove(mainWikiTiddlersFolderPath);
|
||||
} catch {}
|
||||
await fs.createSymlink(subWikiPath, mainWikiTiddlersFolderPath);
|
||||
await fs.createSymlink(subWikiPath, mainWikiTiddlersFolderPath, 'junction');
|
||||
logProgress(i18n.t('AddWorkspace.CreateLinkFromSubWikiToMainWikiSucceed'));
|
||||
} catch {
|
||||
} catch (error) {
|
||||
throw new Error(
|
||||
i18n.t('AddWorkspace.CreateLinkFromSubWikiToMainWikiFailed', { subWikiPath, mainWikiTiddlersFolderPath }),
|
||||
i18n.t('AddWorkspace.CreateLinkFromSubWikiToMainWikiFailed', { subWikiPath, mainWikiTiddlersFolderPath, error }),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue