package files
import (
"strings"
)
func CurrentPath(path string) (curPath string) {
parts := strings.Split(path, "/")[1:]
curPath = "root"
for i, part := range parts {
var sb strings.Builder
sb.WriteString("/")
sb.WriteString(part)
sb.WriteString("")
curPath += sb.String()
}
return
}