Adding to what ths wrote, that .
and ..
are special symbols representing the current and parent folders respectively, if you write to an ADS of a folder (e.g. echo 123 > myfolder:streamname
), then running dir /r
inside myfolder
will show you that .:streamname:$DATA exists, and running dir /r
from a subfolder of myfolder
will show ..:streamname:$DATA
similarly.
The $INDEX_ALLOCATION
attribute type is the one for folders (e.g. echo 123 > newfolder::$INDEX_ALLOCATION
), and can be used to create folders, but you can't simply echo some data into it (internally NTFS stores the data of the directory inside it).
echo 123 > :streamname:$DATA
will write it into .
, and it will also be visible from the parent directory.