Question

What happens if you save a resource or something similar in the alternate data stream for a file, and that file is deleted:

If you try to access the stream again it will be empty in any of these cases, but since the original files in the alternate stream were not formally deleted do they just take up space forever or are they just treated as if they had been deleted / unlinked?

Was it helpful?

Solution

The original question asked about what happens to alternate data streams when the file is moved.

The alternate data streams are associated with the file. If you move the file, the alternate data streams move with the file.

Of course, if you move the file to a drive that does not support alternate data streams, then they are simply lost.


But the question now is somewhat different, and asks about what happens when the file is deleted.

Again, the alternate data streams are associated with the file. When the file is deleted, so too are all alternate data streams associated with the file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top