fix: plugin symbol link with dir type (#2640)

This commit is contained in:
jack zhang 2023-09-13 15:48:11 +08:00 committed by GitHub
parent de8fc8079a
commit a564f78872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ async function createStoragePluginSymLink(pluginName) {
if (await fsExists(link)) {
await unlink(link);
}
await symlink(resolve(storagePluginsPath, pluginName), link);
await symlink(resolve(storagePluginsPath, pluginName), link, 'dir');
} catch (error) {
console.error(error);
}