public void Resolve(string basePath) { var fileInfo = new FileInfo(System.IO.Path.Combine(basePath, Path)); var attributes = fileInfo.Attributes; if (attributes != (FileAttributes)(-1)) { LastWriteTime = fileInfo.LastWriteTime; IsDirectory = (attributes & FileAttributes.Directory) != 0; } else { ChangeType = FsChangeType.Remove; } NeedToResolve = false; }
private FsSenderChange(FsChangeType changeType, string path, bool isReady = true) : base(changeType, path) { // start stopwatch if not ready _readyStopwatch = SlimStopwatch.Create(!isReady); }
private FsSenderChange(FsChangeType changeType, string path, bool isReady = true) : base(changeType, path) { // start timer if not ready _readyTimer = Timer.Create(!isReady, ReadyTimeoutMs); }
public FsChange(FsChangeType changeType, string path) { ChangeType = changeType; Path = path; }