🎨 Prompt when the user attempts to create a workspace in the root directory of the disk https://github.com/siyuan-note/siyuan/issues/15976

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-09-29 11:27:00 +08:00
parent fa17345793
commit f05f56b3e8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
15 changed files with 65 additions and 41 deletions

View file

@ -383,8 +383,8 @@ func IsWorkspaceDir(dir string) bool {
return strings.Contains(string(data), "kernelVersion")
}
// IsRootPath checks if the given path is a root path.
func IsRootPath(path string) bool {
// IsPartitionRootPath checks if the given path is a partition root path.
func IsPartitionRootPath(path string) bool {
if path == "" {
return false
}