public static SetLastWriteTimeUtc ( string path, System lastWriteTimeUtc ) : void | ||
path | string | |
lastWriteTimeUtc | System | |
Результат | void |
public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc) { if (_provider == null) { Directory.SetLastWriteTimeUtc(path, lastWriteTimeUtc); } else { _provider.SetLastWriteTimeUtc(path, lastWriteTimeUtc); } }
public Task SetLastWriteTimeUtcAsync(DriveItem driveItem) { var driveItemPath = driveItem.GetAbsolutePath(this.BasePath); switch (driveItem.Type()) { case DriveItemType.Folder: Directory.SetLastWriteTimeUtc(driveItemPath, driveItem.LastModified()); break; case DriveItemType.File: File.SetLastWriteTimeUtc(driveItemPath, driveItem.LastModified()); break; case DriveItemType.RemoteItem: default: throw new NotSupportedException(); } return(Task.CompletedTask); }
public static void SetLastWriteTimeUtc(string path, System.DateTime lastWriteTimeUtc) => MSIOD.SetLastWriteTimeUtc(path, lastWriteTimeUtc);
public void SetLastWriteTime(DateTimeOffset lastWriteTime) => D.SetLastWriteTimeUtc(this.FullName, lastWriteTime.UtcDateTime);
public override void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc) { Directory.SetLastWriteTimeUtc(path, lastWriteTimeUtc); }