MCPcopy Create free account
hub / github.com/Azure/powershell / deleteFile

Method deleteFile

src/Utilities/FileUtils.ts:21–30  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

19 }
20
21 static async deleteFile(filePath: string) {
22 if (fs.existsSync(filePath)) {
23 try {
24 fs.unlinkSync(filePath);
25 }
26 catch (err) {
27 core.warning(err.toString());
28 }
29 }
30 }
31
32 static pathExists(path: string) {
33 return fs.existsSync(path);

Callers 3

tryInstallFromZipMethod · 0.45
mainFunction · 0.45

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected