fix for files from subdirectories

This commit is contained in:
Pavel 2023-11-12 23:35:27 +03:00
parent 20cfad5a26
commit 2761dbb096

View File

@ -54,7 +54,7 @@ func (c *Client) Open(user, path string) (fs.File, error) {
parts := strings.Split(strings.TrimLeft(path, "/"), "/") parts := strings.Split(strings.TrimLeft(path, "/"), "/")
log.Printf("parts: %d #%v", len(parts), parts) log.Printf("parts: %d #%v", len(parts), parts)
if len(parts) > 1 { if len(parts) > 1 && !strings.Contains(parts[0], ".") {
repo = parts[0] repo = parts[0]
filepath = strings.Join(parts[1:], "/") filepath = strings.Join(parts[1:], "/")
} else { } else {