/// <summary> /// Creates an input of type <see cref="ObservedInputType.ExistingDirectoryProbe" /> /// </summary> public static ObservedInput CreateExistingDirectoryProbe(AbsolutePath path, ObservationFlags?flags = null) { return(new ObservedInput(ObservedInputType.ExistingDirectoryProbe, path, isDirectoryPath: flags?.HasFlag(ObservationFlags.DirectoryLocation) ?? true, directoryEnumeration: flags?.HasFlag(ObservationFlags.Enumeration) ?? false, isFileProbe: flags?.HasFlag(ObservationFlags.FileProbe) ?? false)); }
/// <summary> /// Creates an input of type <see cref="ObservedInputType.AbsentPathProbe" /> /// </summary> public static ObservedInput CreateAbsentPathProbe( AbsolutePath path, ObservationFlags?flags = null, bool isSearchPath = false, string enumeratePatternRegex = null) { return(new ObservedInput( ObservedInputType.AbsentPathProbe, path: path, isSearchPath: isSearchPath, isDirectoryPath: flags?.HasFlag(ObservationFlags.DirectoryLocation) ?? false, directoryEnumeration: flags?.HasFlag(ObservationFlags.Enumeration) ?? false, enumeratePatternRegex: enumeratePatternRegex, isFileProbe: flags?.HasFlag(ObservationFlags.FileProbe) ?? false)); }