aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file_dir_ops.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend/file_dir_ops.go')
-rw-r--r--internal/fusefrontend/file_dir_ops.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/fusefrontend/file_dir_ops.go b/internal/fusefrontend/file_dir_ops.go
index b69e7bc..df14410 100644
--- a/internal/fusefrontend/file_dir_ops.go
+++ b/internal/fusefrontend/file_dir_ops.go
@@ -138,6 +138,8 @@ func (f *File) Readdirent(ctx context.Context) (entry *fuse.DirEntry, errno sysc
continue
}
if f.rootNode.args.PlaintextNames {
+ // Even in plaintext mode, normalize for macOS display
+ entry.Name = normalizeFilenameForDisplay(cName)
return
}
if !f.rootNode.args.DeterministicNames && cName == nametransform.DirIVFilename {
@@ -171,7 +173,7 @@ func (f *File) Readdirent(ctx context.Context) (entry *fuse.DirEntry, errno sysc
}
// Override the ciphertext name with the plaintext name but reuse the rest
// of the structure
- entry.Name = name
+ entry.Name = normalizeFilenameForDisplay(name)
return
}
}