private static GetWatchPathsData ( IEnumerable |
||
paths | IEnumerable |
List of paths to convert. |
return | byte[] |
/// <summary> /// Clears the list of paths to watch. /// </summary> /// <exception cref="InvalidOperationException">Client is not connected to the driver.</exception> public void ClearWatchPaths() { this.ExecuteCommand(new DriverCommand(DriverCommandType.SetWatchPaths, LazyCopyDriverClient.GetWatchPathsData(null))); }
/// <summary> /// Sets the list of paths the driver should watch. /// </summary> /// <param name="paths">List of paths to watch and their report rates. Should be in DOS name format, for example: <c>\Device\HarddiskVolume1\Folder\</c></param> /// <exception cref="InvalidOperationException">Client is not connected to the driver.</exception> public void SetWatchPaths(string[] paths) { byte[] data = LazyCopyDriverClient.GetWatchPathsData(paths); this.ExecuteCommand(new DriverCommand(DriverCommandType.SetWatchPaths, data)); }