Merge pull request #7370 from crobibero/internal-metadata-path

Only add internal files if the internal metadata path exists
This commit is contained in:
Claus Vium
2022-03-04 08:13:58 +01:00
committed by GitHub
11 changed files with 153 additions and 27 deletions

View File

@@ -200,5 +200,19 @@ namespace MediaBrowser.Model.IO
void SetAttributes(string path, bool isHidden, bool readOnly);
IEnumerable<FileSystemMetadata> GetDrives();
/// <summary>
/// Determines whether the directory exists.
/// </summary>
/// <param name="path">The path.</param>
/// <returns>Whether the path exists.</returns>
bool DirectoryExists(string path);
/// <summary>
/// Determines whether the file exists.
/// </summary>
/// <param name="path">The path.</param>
/// <returns>Whether the path exists.</returns>
bool FileExists(string path);
}
}