diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-08-13 21:36:42 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-08-13 21:36:42 +0200 |
commit | c51fb8cc8b850b4915e083d0dd2c30d79f8b632e (patch) | |
tree | 527ba9e4f897bc2faf997ff648aeb85cc9c247eb /pkg/worker | |
parent | f99f2bc94808d784c92ec4e58c660a8be3ed7fce (diff) | |
download | lens-c51fb8cc8b850b4915e083d0dd2c30d79f8b632e.tar.gz lens-c51fb8cc8b850b4915e083d0dd2c30d79f8b632e.tar.bz2 lens-c51fb8cc8b850b4915e083d0dd2c30d79f8b632e.zip |
feat: Add (yet again) crude album implementation
This is a initial UI album implementation. This should cover the most
basic album navigation.
This is still plenty to do :)
Diffstat (limited to 'pkg/worker')
-rw-r--r-- | pkg/worker/scanner/album_scanner.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/worker/scanner/album_scanner.go b/pkg/worker/scanner/album_scanner.go index 618a184..04af9bc 100644 --- a/pkg/worker/scanner/album_scanner.go +++ b/pkg/worker/scanner/album_scanner.go @@ -92,6 +92,7 @@ func FanInwards(paths []string) []string { result := make([]string, 0, len(paths)) for i := (len(paths) - 1); i >= 0; i-- { subPaths := paths[0:i] + subPaths = append([]string{"/"}, subPaths...) result = append(result, path.Join(subPaths...)) } return result |