In v3.2.0 now allows users to opt-in to store mode and modification time for files, directories, and symbolic links. By default, if you do not opt-in, the old behavior remains unchanged, and the same CIDs will be generated as before.
The btfs add CLI options --preserve-mode and --preserve-mtime can be used to store the original mode and last modified time of the file being added, and btfs files stat /btfs/CID can be used for inspecting these optional attributes:

$ touch ./file
$ chmod 654 ./file
$ btfs add file.txt --preserve-mode --preserve-mtime
QmczQr4XS1rRnWVopyg5Chr9EQ7JKpbhgnrjpb5kTQ1DKQ

$ btfs files stat /btfs/QmUjXK1MszpBXmRzjmmYp9WWceZeP2MfEPjXxjHF5pzP5R
QmUjXK1MszpBXmRzjmmYp9WWceZeP2MfEPjXxjHF5pzP5R
Size: 12
CumulativeSize: 29
ChildBlocks: 0
Type: file
Mode: -rw-r--r-- (0644)
Mtime: 12 Dec 2024, 06:33:11 UTC

Opt-in support for mode and mtime was also added to MFS and you can use btfs ls PATH-CID -t -m to inspecting these optional attributes:

$ btfs files cp /btfs/QmUjXK1MszpBXmRzjmmYp9WWceZeP2MfEPjXxjHF5pzP5R /file.txt
$ btfs ls QmYfkD4wH3UAsKmSbo5M15KakhKY4KLVEat8G5koHu2hzV -t -m
QmUjXK1MszpBXmRzjmmYp9WWceZeP2MfEPjXxjHF5pzP5R 12 file.txt -rw-r--r-- 12 Dec 2024, 14:33:11 CST