A copy can produce the expected filename and the expected number of bytes, yet still leave part of an NTFS file behind. The missing part need not be a second directory entry. It can be a named data stream attached to the same file.
That possibility is easy to miss in a Mac-to-Windows transfer check. The ordinary contents open correctly, the size matches, and the job appears done. This does not mean every NTFS file carries extra hidden data. It means that a single file size cannot inventory all the data streams a file may have.
The default stream is not necessarily the only stream
Microsoft's file-stream documentation describes an NTFS file as a collection of streams. The default data stream is unnamed; additional data streams have names. Each stream has its own allocation size, actual size, and valid data length. A named data stream is addressed with a stream name and the $DATA stream type, rather than appearing as a separate sibling file.
On Windows PowerShell, this read-only command lists the streams associated with one file:
Get-Item -LiteralPath 'D:\Cases\report.pdf' -Stream *
The result can include the unnamed ::$DATA stream and, when present, named streams with their own lengths. The -Stream parameter is supplied by PowerShell's FileSystem provider and is available only on Windows. Microsoft introduced it in PowerShell 3.0, so this is not a new PowerShell 7-only feature, but it is also not a cross-platform Get-Item option.
For a stream known to contain text, its contents can be inspected separately:
Get-Content -LiteralPath 'D:\Cases\report.pdf' -Stream 'ReviewNotes'
That command is a documentation-based example, not output I captured from a test drive. A missing stream produces an error rather than the ordinary file contents. Nor should Get-Content be treated as a general binary-stream viewer.
Why stat and xattr on a Mac answer a different question
A cautious first inspection from macOS might look like this:
stat -f '%N: %z bytes' '/Volumes/NTFS/Cases/report.pdf'
xattr -l '/Volumes/NTFS/Cases/report.pdf'
I checked both command forms locally on macOS 27.3, using an APFS system file for the syntax check. I did not run them against an NTFS test volume, so the paths above are examples to adapt, not a claim about a particular mounted drive.
The more important limit is conceptual. stat reports a size, while xattr queries the extended-attribute interface exposed for that file. Neither command is a portable promise to enumerate every named NTFS stream through every macOS NTFS implementation. An empty xattr listing is therefore not proof that no alternate data streams exist.
The upstream NTFS-3G manual makes the implementation dependency unusually clear. It says that the size of a file is the size of its unnamed data stream and that, by default, NTFS-3G reads only that stream. Its streams_interface=windows option enables access to named streams with a colon-based syntax, and its ntfs.streams.list extended attribute can list them. Those are documented NTFS-3G interfaces, not universal macOS syntax and not a recommendation to change mount options on a valuable disk.
This distinction also prevents a common false equivalence: an NTFS named stream and a macOS extended attribute are different on-disk concepts, even if a particular driver chooses to expose one through an interface associated with the other. For a transfer review, ask what the actual source driver, copy tool, destination file system, and destination driver preserve. The noun metadata is too broad to settle that question.
A small copy test with a real failure condition
Use a disposable directory on an NTFS volume and a file you can delete afterwards. The following PowerShell example creates a default stream and one named text stream, then reads both back:
Set-Content -LiteralPath 'D:\ADS-Test\probe.txt' -Value 'default stream'
Set-Content -LiteralPath 'D:\ADS-Test\probe.txt' -Stream 'TransferProbe' -Value 'named stream'
Get-Item -LiteralPath 'D:\ADS-Test\probe.txt' -Stream *
Get-Content -LiteralPath 'D:\ADS-Test\probe.txt' -Stream 'TransferProbe'
Microsoft documents that Set-Content -Stream creates the named stream if it does not exist. These commands are examples built from that documentation; I have not run them on Windows for this post. Set-Content is string-oriented, which is sufficient for this probe but not a recipe for arbitrary binary metadata.
Now copy probe.txt through the workflow being evaluated to a separate destination. Run Get-Item -Stream * against that destination and compare the stream names and lengths with the source. Read TransferProbe again if the workflow is expected to preserve it. If only the unnamed stream arrives, the ordinary file copy may still be perfectly usable, but the workflow has not preserved the complete stream set.
Whether that is a defect depends on the contract. A document handoff may intentionally require only the default contents. An archival or application-specific workflow may require named streams and should say so explicitly. It is safer to discover that requirement with a probe than to delete unfamiliar streams as supposed cleanup; named streams can affect how other software treats the file.
The verification boundary matters too. PowerShell's stream support on Windows does not make a non-NTFS destination capable of storing the same representation. A successful test with one Mac mount, copy utility, and destination does not establish the behavior of another chain. When named streams matter, retain the source until the destination has been inspected on a Windows NTFS volume, and record the tools involved rather than relying on the visible byte count alone.
Sources
- Microsoft Learn: File streams (local file systems)
- Microsoft Learn: Get-Item and Set-Content
- NTFS-3G upstream manual: Alternate Data Streams section in
ntfs-3g.8.in
This post is from the DiskBee team. We build an FSKit-based NTFS and BitLocker utility for macOS. The probe above is deliberately driver-agnostic and does not assume that a particular Mac NTFS implementation preserves named streams. Project site: https://www.ntfs.pro/
Top comments (0)