mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 10:14:14 -04:00
fixes #427 - Handle mac .DS_Store
This commit is contained in:
parent
390409195f
commit
e51a38a93d
@ -35,6 +35,13 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
|
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
|
||||||
public bool ShouldIgnore(ItemResolveArgs args)
|
public bool ShouldIgnore(ItemResolveArgs args)
|
||||||
{
|
{
|
||||||
|
// Handle mac .DS_Store
|
||||||
|
// https://github.com/MediaBrowser/MediaBrowser/issues/427
|
||||||
|
if (args.Path.IndexOf("._", StringComparison.OrdinalIgnoreCase) == 0)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Ignore hidden files and folders
|
// Ignore hidden files and folders
|
||||||
if (args.IsHidden)
|
if (args.IsHidden)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user