mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Plugin import - Overwrite existing folder if needed
Plugin import - Enable newly imported plugins straight away
This commit is contained in:
1 parent
2179c889a3
commit
496f0e9b74
2 files changed
+15
-7
No files matched your search
@@ -529,7 +529,7 @@ namespace Artemis.Core.Services
|
||||
|
||||
string targetDirectory = pluginInfo.PreferredPluginDirectory;
|
||||
if (Directory.Exists(Path.Combine(pluginDirectory.FullName, targetDirectory)))
|
||||
throw new ArtemisPluginException($"A directory for this plugin already exists {Path.Combine(pluginDirectory.FullName, targetDirectory)}");
|
||||
Directory.Delete(Path.Combine(pluginDirectory.FullName, targetDirectory), true);
|
||||
|
||||
// Extract everything in the same archive directory to the unique plugin directory
|
||||
DirectoryInfo directoryInfo = new(Path.Combine(pluginDirectory.FullName, targetDirectory));
|
||||
|
||||
Reference in new issue
Block a user