Class DirectoryService
Inheritance
System.Object
DirectoryService
Assembly: MediaBrowser.Controller.dll
public sealed class DirectoryService : IDirectoryService
Constructors
Declaration
public DirectoryService(IFileSystem fileSystem)
Parameters
Declaration
public DirectoryService(ILogger logger, IFileSystem fileSystem)
Parameters
Methods
Declaration
public void AddOrUpdateCache(string key, object item)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
item |
|
Declaration
public BaseItem[] GetCachedValidChildren(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Returns
Declaration
public FileSystemMetadata GetFile(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Declaration
public FileSystemMetadata GetFile(string directory, string filename, bool caseSensitive)
Parameters
Type |
Name |
Description |
System.String |
directory |
|
System.String |
filename |
|
System.Boolean |
caseSensitive |
|
Returns
Declaration
public List<string> GetFilePaths(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Declaration
public List<string> GetFilePaths(string path, bool clearCache)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Boolean |
clearCache |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Declaration
public List<FileSystemMetadata> GetFiles(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Declaration
public FileSystemMetadata[] GetFileSystemEntries(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Declaration
public FileSystemMetadata[] GetFileSystemEntries(string path, bool clearCache)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Boolean |
clearCache |
|
Returns
Declaration
public bool IsTaggedItemRefreshed(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void MarkTaggedItemRefreshed(long id)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
Declaration
public void SetCachedValidChildren(long id, BaseItem[] children)
Parameters
Type |
Name |
Description |
System.Int64 |
id |
|
BaseItem[] |
children |
|
Declaration
public bool TryGetFromCache<T>(string key, out T result)
where T : class
Parameters
Type |
Name |
Description |
System.String |
key |
|
T |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Implements
Extension Methods