mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Physically delete a workspace on the mobile https://github.com/siyuan-note/siyuan/issues/9134
This commit is contained in:
parent
db690132d7
commit
66fe83bead
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,6 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
|
|||
}
|
||||
|
||||
path := arg["path"].(string)
|
||||
|
||||
if gulu.File.IsDir(path) {
|
||||
err := os.RemoveAll(path)
|
||||
if nil != err {
|
||||
|
|
@ -183,6 +182,7 @@ func removeWorkspaceDirPhysically(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
logging.LogInfof("removed workspace [%s] physically", path)
|
||||
if util.WorkspaceDir == path {
|
||||
os.Exit(logging.ExitCodeOk)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue