mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 15:28:28 +01:00
easier user library setup
This commit is contained in:
@@ -332,29 +332,15 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
await UserRepository.DeleteUser(user, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
if (user.Configuration.UseCustomLibrary)
|
||||
var path = user.ConfigurationFilePath;
|
||||
|
||||
try
|
||||
{
|
||||
var path = user.RootFolderPath;
|
||||
|
||||
try
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
_logger.ErrorException("Error deleting directory {0}", ex, path);
|
||||
}
|
||||
|
||||
path = user.ConfigurationFilePath;
|
||||
|
||||
try
|
||||
{
|
||||
File.Delete(path);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
_logger.ErrorException("Error deleting file {0}", ex, path);
|
||||
}
|
||||
File.Delete(path);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
_logger.ErrorException("Error deleting file {0}", ex, path);
|
||||
}
|
||||
|
||||
// Force this to be lazy loaded again
|
||||
|
||||
Reference in New Issue
Block a user