/// <summary> /// Transfers data from find data /// </summary> internal void SetFindData(Win32FindData win32FindData) { LastWriteTimeUtc = win32FindData.GetLastWriteTimeUtc(); LastAccessTimeUtc = win32FindData.GetLastAccessTimeUtc(); CreationTimeUtc = win32FindData.GetCreationTimeUtc(); Name = win32FindData.cFileName; Attributes = win32FindData.dwFileAttributes; }
/// <summary> /// Determines the time stamp of the given <see cref="Win32FindData"/> /// </summary> /// <param name="win32FindData"><see cref="Win32FindData"/></param> private void RetriveDateTimeInformation(Win32FindData win32FindData) { LastWriteTimeUtc = win32FindData.GetLastWriteTimeUtc(); LastAccessTimeUtc = win32FindData.GetLastAccessTimeUtc(); CreationTimeUtc = win32FindData.GetCreationTimeUtc(); }