mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
override buffer size only for windows
This commit is contained in:
parent
e73b48170d
commit
b5cc5abacf
@ -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…
x
Reference in New Issue
Block a user