/// <summary> /// Initializes a new instance of the <see cref="AlternateDataStreamInfo"/> class. /// </summary> /// <param name="filePath"> /// The full path of the file. /// This argument must not be <see langword="null"/>. /// </param> /// <param name="info"> /// The <see cref="SafeNativeMethods.Win32StreamInfo"/> containing the stream information. /// </param> internal AlternateDataStreamInfo(string filePath, SafeNativeMethods.Win32StreamInfo info) { FilePath = filePath; Name = info.StreamName; StreamType = info.StreamType; Attributes = info.StreamAttributes; Size = info.StreamSize; Exists = true; FullPath = SafeNativeMethods.BuildStreamPath(FilePath, Name); }
/// <summary> /// Initializes a new instance of the <see cref="AlternateDataStreamInfo"/> class. /// </summary> /// <param name="filePath"> /// The full path of the file. /// This argument must not be <see langword="null"/>. /// </param> /// <param name="info"> /// The <see cref="SafeNativeMethods.Win32StreamInfo"/> containing the stream information. /// </param> internal AlternateDataStreamInfo(string filePath, SafeNativeMethods.Win32StreamInfo info) { _filePath = filePath; _streamName = info.StreamName; _streamType = info.StreamType; _attributes = info.StreamAttributes; _size = info.StreamSize; _exists = true; _fullPath = SafeNativeMethods.BuildStreamPath(_filePath, _streamName); }