Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fixed bug in syncing on windows

Neeraj Gupta7d72c794421f
diff --git a/pkg/disk.go b/pkg/disk.go
index cae694f241..5dc9acbae6 100644
--- a/pkg/disk.go
+++ b/pkg/disk.go
@@ -7,7 +7,6 @@ import (
"github.com/ente-io/cli/pkg/model/export"
"io"
"os"
- "strings"
)
const (
@@ -101,7 +100,7 @@ func readJSONFromFile(filePath string, data interface{}) error {
func Move(source, destination string) error {
err := os.Rename(source, destination)
- if err != nil && strings.Contains(err.Error(), "cross-device link") {
+ if err != nil {
return moveCrossDevice(source, destination)
}
return err
diff --git a/pkg/remote_to_disk_album.go b/pkg/remote_to_disk_album.go
index 247d054991..dc1dfeacbd 100644
--- a/pkg/remote_to_disk_album.go
+++ b/pkg/remote_to_disk_album.go
@@ -47,6 +47,8 @@ func (c *ClICtrl) createLocalFolderForRemoteAlbums(ctx context.Context, account
}
albumFolderName := filepath.Clean(album.AlbumName)
+ // replace : with _
+ albumFolderName = strings.ReplaceAll(albumFolderName, ":", "_")
albumID := album.ID
if _, ok := folderToMetaMap[albumFolderName]; ok {