1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-11-04 01:23:02 +00:00

Implement the rocket link migration algorithm

This commit is contained in:
Timur Ismagilov
2022-01-31 02:34:52 +05:00
parent 3281fadfc5
commit 86d1a00bfc
7 changed files with 142 additions and 7 deletions

View File

@@ -38,6 +38,9 @@ func TokensJSON() string { return paths.tokensJSON }
// UserCredentialsJSON returns the path to the JSON user credentials storage.
func UserCredentialsJSON() string { return paths.userCredentialsJSON }
// FileInRoot returns full path for the given filename if it was placed in the root of the wiki structure.
func FileInRoot(filename string) string { return filepath.Join(cfg.WikiDir, filename) }
// PrepareWikiRoot ensures all needed directories and files exist and have
// correct permissions.
func PrepareWikiRoot() error {