mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-20 05:04:18 +01:00
@@ -63,13 +63,13 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
public FileSystemMetadata? GetFile(string path)
|
public FileSystemMetadata? GetFile(string path)
|
||||||
{
|
{
|
||||||
var entry = GetFileSystemEntry(path);
|
var entry = GetFileSystemEntry(path);
|
||||||
return entry != null && !entry.IsDirectory ? entry : null;
|
return entry is not null && !entry.IsDirectory ? entry : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileSystemMetadata? GetDirectory(string path)
|
public FileSystemMetadata? GetDirectory(string path)
|
||||||
{
|
{
|
||||||
var entry = GetFileSystemEntry(path);
|
var entry = GetFileSystemEntry(path);
|
||||||
return entry != null && entry.IsDirectory ? entry : null;
|
return entry is not null && entry.IsDirectory ? entry : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileSystemMetadata? GetFileSystemEntry(string path)
|
public FileSystemMetadata? GetFileSystemEntry(string path)
|
||||||
|
|||||||
Reference in New Issue
Block a user