Пример #1
0
        /// <summary>
        /// Creates instance of <see cref="FileMetadata"/>
        /// </summary>
        /// <param name="uncResultPath">UNC Path of current file</param>
        /// <param name="win32FindData">Win32FindData of current file</param>
        internal FileMetadata(string uncResultPath, Win32FindData win32FindData)
            : base(uncResultPath)
        {
            SetFindData(win32FindData);

            Bytes = win32FindData.CalculateBytes();
        }
Пример #2
0
 /// <summary>
 /// Calculates the size of the file from the handle
 /// </summary>
 /// <param name="win32FindData"></param>
 private void CalculateSize(Win32FindData win32FindData)
 {
     Bytes = win32FindData.CalculateBytes();
 }