Alternate Data Streams
Jump to navigation
Jump to search
✎ This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.
NTFS allows what is called Alternate Data Streams (not unlike AppleDouble in concept).
For example, if you have a
file.txt
then you can also open a
file.txt:streamname
where streamname can be anything.
These are basically extra byte streams,
that conceptually belong to the same file in that they will be moved along onto a supporting filesystem (mainly NTFS, also MS's DFS if it is backed by NTFS(verify)), though silently removed when copied/moved to one that does not.
These streams are barely visible even to most of MS's own tools
- explorer won't really show them
- dir can list them, but doesn't do so by default (see dir /r)
- PowerShell can, but you still have to do it explicitly
- while windows APIs expose them, that may not carry into various programming languages.
- you can open them (because the filename just passes through to filesystem code) -- but you often cannot list them