override buffer size only for windows

pull/1154/head
Luke Pulverenti 9 years ago
parent e73b48170d
commit b5cc5abacf

@ -275,10 +275,14 @@ namespace MediaBrowser.Server.Implementations.IO
{
var newWatcher = new FileSystemWatcher(path, "*")
{
IncludeSubdirectories = true,
InternalBufferSize = 32767
IncludeSubdirectories = true
};
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
newWatcher.InternalBufferSize = 32767;
}
newWatcher.NotifyFilter = NotifyFilters.CreationTime |
NotifyFilters.DirectoryName |
NotifyFilters.FileName |

Loading…
Cancel
Save