We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1810e8 commit e1f4e03Copy full SHA for e1f4e03
packages/fx-core/src/component/deps-checker/util/fileHelper.ts
@@ -14,6 +14,9 @@ export async function unlinkSymlink(linkFilePath: string): Promise<void> {
14
const stat = await fs.lstat(linkFilePath);
15
if (stat.isSymbolicLink()) {
16
await fs.unlink(linkFilePath);
17
+ } else {
18
+ // For regular file or directory, remove it
19
+ await fs.remove(linkFilePath);
20
}
21
} catch (error: unknown) {
22
const statError = error as { code?: string };
0 commit comments