Added method: EnumerateStreams() to enumerate NTFS Alternate Data Streams (ADS).

Developer
Oct 24, 2012 at 5:01 PM
Edited Oct 24, 2012 at 5:22 PM

The EnumerateStreams() convenience method enumerates the NTFS Alternate Data Streams (ADS).

This method (with overloads) has been added to the classes: BackupFileStream(), File(), FileInfo(), Directory() and DirectoryInfo().

The returned data will be of type: BackupStreamInfo

 

File.EnumerateStreams()
FileInfo.EnumerateStreams()

	Local: "C:\Users\ikke\AppData\Local\Temp\File.EnumerateStreams()-yfzyjmyo.xnf"

		Stream content: "H�ll� W�rld!"

	Added stream, name: ":ThisIsAnExtraStream-Local"

		Stream content: "G��dBy� W�rld! - Extra Stream Information (Local)"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"ContainsSecurity"
		#002	Name       ==	""
		#003	Size       ==	"152"
		#004	Source     ==	""
		#005	StreamType ==	"SecurityData"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"None"
		#002	Name       ==	""
		#003	Size       ==	"18"
		#004	Source     ==	""
		#005	StreamType ==	"Data"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"None"
		#002	Name       ==	":ThisIsAnExtraStream-Local:$DATA"
		#003	Size       ==	"56"
		#004	Source     ==	""
		#005	StreamType ==	"AlternateData"

			*Duration:   39 ms. (00:00:00.0390708)	*Win32 Result:    0	*Win32 Message: "De bewerking is voltooid"


	Network: "\\IKKE-PC\C$\Users\ikke\AppData\Local\Temp\File.EnumerateStreams()-yfzyjmyo.xnf"

		Stream content: "H�ll� W�rld!"

	Added stream, name: ":ThisIsAnExtraStream-Network"

		Stream content: "G��dBy� W�rld! - Extra Stream Information (Network)"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"ContainsSecurity"
		#002	Name       ==	""
		#003	Size       ==	"152"
		#004	Source     ==	""
		#005	StreamType ==	"SecurityData"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"None"
		#002	Name       ==	""
		#003	Size       ==	"18"
		#004	Source     ==	""
		#005	StreamType ==	"Data"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"None"
		#002	Name       ==	":ThisIsAnExtraStream-Local:$DATA"
		#003	Size       ==	"56"
		#004	Source     ==	""
		#005	StreamType ==	"AlternateData"

		Pointer object to: "Alphaleonis.Win32.Filesystem.BackupStreamInfo"

		#001	Attributes ==	"None"
		#002	Name       ==	":ThisIsAnExtraStream-Network:$DATA"
		#003	Size       ==	"58"
		#004	Source     ==	""
		#005	StreamType ==	"AlternateData"

			*Duration:   14 ms. (00:00:00.0147638)	*Win32 Result:    0	*Win32 Message: "De bewerking is voltooid"


	(Deleted tempfile == "IsTrue": True)


Developer
Oct 24, 2012 at 5:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.