Fixing files marked as stuck as partially transferred in Finder

Very rough note, but if I don’t write it down, no one else will find it. A friend was dealing with an issue where she interrupted a file transfer of many files and directories to an SMB share on macOS and transferred it via other means. However, macOS thought the files were still in a partially transferred state to be resumed. There was no obvious way to tell Finder that it was OK.

It seems that clearing a file’s extended attributes can clear this out. A quick way to remove all extended attributes from everything in the current directory:

shopt -s globstar
xattr -c **

Be careful with this – you might have files that do need the extended attributes. In this case, it wasn’t needed. Read on for the theory on why this might work and the specific attribute that might be a problem.


I’m not entirely sure, but I suspect there’s some bits in the DOSATTRIB extended attribute used for this purpose. While it’s normally for storing Windows-specific bits, it seems it’s also used for storing informatioon about locking and possibly other things. Some example ones:

working1: user.DOSATTRIB:
0000   00 00 05 00 05 00 00 00 11 00 00 00 10 00 00 00    ................
0010   80 D1 12 DC 23 85 D8 01                            ....#...

working2: user.DOSATTRIB:
0000   00 00 05 00 05 00 00 00 11 00 00 00 10 00 00 00    ................
0010   00 F0 89 3F 4F 17 D9 01                            ...?O...

broken: user.DOSATTRIB:
0000   00 00 05 00 05 00 00 00 11 00 00 00 10 00 00 00    ................
0010   00 C0 FD CC 04 76 AD 01                            .....v..

Leave a Reply

Your email address will not be published. Required fields are marked *