Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
fix issue where file modfied time was reported incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
tunip3 committed Oct 25, 2021
1 parent fc2599b commit 0f70532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UniversalFtpServer/PinvokeFilesystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public static List<MonitoredFolderItem> GetItems(string path)
//set modified time
long datemodifiedoffset = findDataResult.lastWriteTime.dwHighDateTime;
datemodifiedoffset = (datemodifiedoffset << 32);
datemodifiedoffset = datemodifiedoffset | (long)(uint)findDataResult.creationTime.dwLowDateTime;
datemodifiedoffset = datemodifiedoffset | (long)(uint)findDataResult.lastWriteTime.dwLowDateTime;
fileitem.DateModified = System.DateTimeOffset.FromFileTime(datemodifiedoffset);

//set the size
Expand Down

0 comments on commit 0f70532

Please sign in to comment.