Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix: trim spaces from albumFolder name for disk

Neeraj Gupta8e0eaae27739
diff --git a/pkg/remote_to_disk_album.go b/pkg/remote_to_disk_album.go
index 540aee1f7e..7b0b64f972 100644
--- a/pkg/remote_to_disk_album.go
+++ b/pkg/remote_to_disk_album.go
@@ -50,6 +50,8 @@ func (c *ClICtrl) createLocalFolderForRemoteAlbums(ctx context.Context, account
// replace : with _
albumFolderName = strings.ReplaceAll(albumFolderName, ":", "_")
albumFolderName = strings.ReplaceAll(albumFolderName, "/", "_")
+ albumFolderName = strings.TrimSpace(albumFolderName)
+
albumID := album.ID
if _, ok := folderToMetaMap[albumFolderName]; ok {