mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 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:
parent
fa17345793
commit
f05f56b3e8
15 changed files with 65 additions and 41 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue