Skip to content

Commit

Permalink
fix #534
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Nov 22, 2024
1 parent a41de42 commit 0acbdde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion adapters/folder/readFolder.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ func (la *LocalAssetBrowser) parseDir(ctx context.Context, fsys fs.FS, dir strin
parts = append(parts, fsName)
}
if dir != "." {
parts = append(parts, strings.Split(dir, string(filepath.Separator))...)
parts = append(parts, strings.Split(dir, "/")...)
// parts = append(parts, strings.Split(dir, string(filepath.Separator))...)
}
Album = strings.Join(parts, la.flags.AlbumNamePathSeparator)
}
Expand Down
4 changes: 3 additions & 1 deletion internal/fshelper/extendedFS.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func MkdirAll(fsys fs.FS, path string, perm fs.FileMode) error {
return fsys.MkdirAll(path, perm)
}
if fsys, ok := fsys.(FSCanWrite); ok {
parts := strings.Split(path, string(filepath.Separator))
parts := strings.Split(path, "/")

// parts := strings.Split(path, string(filepath.Separator))
path = ""
for i := 0; i < len(parts); i++ {
path = filepath.Join(path, parts[i])
Expand Down

0 comments on commit 0acbdde

Please sign in to comment.