Skip to content

Commit 56dfe04

Browse files
Code clarity
1 parent 18c6db7 commit 56dfe04

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/cloudinary/cloudinary.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,7 @@ func (f *Fs) List(ctx context.Context, dir string) (fs.DirEntries, error) {
331331
}
332332

333333
for _, asset := range results.Assets {
334-
remote := api.CloudinaryEncoder.ToStandardName(f, asset.DisplayName)
335-
if dir != "" {
336-
remote = path.Join(dir, api.CloudinaryEncoder.ToStandardName(f, asset.DisplayName))
337-
}
334+
remote := path.Join(dir, api.CloudinaryEncoder.ToStandardName(f, asset.DisplayName, asset.SecureURL))
338335
o := &Object{
339336
fs: f,
340337
remote: remote,

0 commit comments

Comments
 (0)