fix plugin uninstall
This commit is contained in:
parent
1867fe2e51
commit
992ad9c2d9
|
@ -668,7 +668,7 @@ namespace Emby.Server.Implementations.Updates
|
||||||
_logger.Info("Deleting plugin file {0}", path);
|
_logger.Info("Deleting plugin file {0}", path);
|
||||||
|
|
||||||
// Make this case-insensitive to account for possible incorrect assembly naming
|
// Make this case-insensitive to account for possible incorrect assembly naming
|
||||||
var file = _fileSystem.GetFilePaths(path)
|
var file = _fileSystem.GetFilePaths(_fileSystem.GetDirectoryName(path))
|
||||||
.FirstOrDefault(i => string.Equals(i, path, StringComparison.OrdinalIgnoreCase));
|
.FirstOrDefault(i => string.Equals(i, path, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(file))
|
if (!string.IsNullOrWhiteSpace(file))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user