mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
override buffer size only for windows
This commit is contained in:
parent
67f9a986a7
commit
27e846893a
1 changed files with 6 additions and 2 deletions
|
@ -275,10 +275,14 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||||
{
|
{
|
||||||
var newWatcher = new FileSystemWatcher(path, "*")
|
var newWatcher = new FileSystemWatcher(path, "*")
|
||||||
{
|
{
|
||||||
IncludeSubdirectories = true,
|
IncludeSubdirectories = true
|
||||||
InternalBufferSize = 32767
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
|
{
|
||||||
|
newWatcher.InternalBufferSize = 32767;
|
||||||
|
}
|
||||||
|
|
||||||
newWatcher.NotifyFilter = NotifyFilters.CreationTime |
|
newWatcher.NotifyFilter = NotifyFilters.CreationTime |
|
||||||
NotifyFilters.DirectoryName |
|
NotifyFilters.DirectoryName |
|
||||||
NotifyFilters.FileName |
|
NotifyFilters.FileName |
|
||||||
|
|
Loading…
Reference in a new issue