🎨 Support for symlinked theme folder when exporting HTML https://github.com/siyuan-note/siyuan/issues/9173

This commit is contained in:
Daniel 2023-09-13 08:54:29 +08:00
parent 07b28ddb48
commit 736256e26a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 31 additions and 2 deletions

View file

@ -31,6 +31,14 @@ import (
"github.com/siyuan-note/logging"
)
func IsSymlinkPath(absPath string) bool {
fi, err := os.Lstat(absPath)
if nil != err {
return false
}
return 0 != fi.Mode()&os.ModeSymlink
}
func IsEmptyDir(p string) bool {
if !gulu.File.IsDir(p) {
return false