mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-02 01:29:42 -06:00
[server][core] Fix parent path
This commit is contained in:
@@ -98,7 +98,7 @@ func (f filesystem) targetNameParentByPathWithRoot(path string, src Resource) (s
|
||||
i := strings.LastIndex(path, "/")
|
||||
parentPath := ""
|
||||
if i > 0 {
|
||||
parentPath = path[i:]
|
||||
parentPath = path[:i]
|
||||
}
|
||||
parent, err := f.ResourceByPath(parentPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user