When a file is being copied in on macOS, the com.apple.FinderInfo
xattr is set to the 32-byte value
627a7920 00000000 00000000 00000000 00000000 00000000 00000000 00000000
which would show up as bzy
with xattr -p com.apple.FinderInfo /path/to/file
. (This may only be true when there are no additional attributes likes flags.) This can be used to test whether a file copy has completed.
Conversely, one can also use
xattr -wx com.apple.FinderInfo '627a7920 00000000 00000000 00000000 00000000 00000000 00000000 00000000' /path/to/file
to emulate the in-progress visual when writing a file.