mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-20 06:30:57 +01:00
Tweaked disk access a little bit more
This commit is contained in:
parent
9029d939f3
commit
76d365fcf9
@@ -110,7 +110,7 @@ namespace MediaBrowser.Controller
|
||||
/// </summary>
|
||||
void ItemController_PreBeginResolvePath(object sender, PreBeginResolveEventArgs e)
|
||||
{
|
||||
if (e.IsHidden || e.IsSystemFile)
|
||||
if (e.File.FileInfo.IsHidden || e.File.FileInfo.IsSystemFile)
|
||||
{
|
||||
// Ignore hidden files and folders
|
||||
e.Cancel = true;
|
||||
@@ -129,13 +129,10 @@ namespace MediaBrowser.Controller
|
||||
/// </summary>
|
||||
void ItemController_BeginResolvePath(object sender, ItemResolveEventArgs e)
|
||||
{
|
||||
if (e.IsFolder)
|
||||
if (e.ContainsFile(".ignore"))
|
||||
{
|
||||
if (e.ContainsFile(".ignore"))
|
||||
{
|
||||
// Ignore any folders containing a file called .ignore
|
||||
e.Cancel = true;
|
||||
}
|
||||
// Ignore any folders containing a file called .ignore
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user