https://github.com/thomaslevesque/sharpads
A library that provides access to NTFS alternate data streams
https://github.com/thomaslevesque/sharpads
Last synced: 12 months ago
JSON representation
A library that provides access to NTFS alternate data streams
- Host: GitHub
- URL: https://github.com/thomaslevesque/sharpads
- Owner: thomaslevesque
- Created: 2014-10-09T13:53:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T16:36:59.000Z (over 11 years ago)
- Last Synced: 2025-01-30T07:43:20.427Z (over 1 year ago)
- Language: C#
- Size: 133 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SharpADS
========
A library that provides access to NTFS alternate data streams.
The library has just two classes:
- `AdsFile` exposes static methods similar to the ones in `System.IO.File`, except that you specify the stream name in addition to the path:
```csharp
AdsFile.WriteAllText("foobar.txt", "secret", "hello world");
```
- `AdsFileStream` is the equivalent of `System.IO.FileStream` (and actually inherits from it) for alternate data streams. It can be used exactly like `FileStream`, except that the constructor takes the stream name in addition to the path:
```csharp
using (var stream = new AdsFileStream("foobar.txt", "secret", FileMode.Create, FileAccess.Write))
{
...
}
```