fix for files from subdirectories
This commit is contained in:
parent
20cfad5a26
commit
2761dbb096
@ -54,7 +54,7 @@ func (c *Client) Open(user, path string) (fs.File, error) {
|
||||
|
||||
parts := strings.Split(strings.TrimLeft(path, "/"), "/")
|
||||
log.Printf("parts: %d #%v", len(parts), parts)
|
||||
if len(parts) > 1 {
|
||||
if len(parts) > 1 && !strings.Contains(parts[0], ".") {
|
||||
repo = parts[0]
|
||||
filepath = strings.Join(parts[1:], "/")
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user