MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / remove

Method remove

packages/core/file-system/index.ts:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 public remove(): Promise<any> {
74 return new Promise((resolve, reject) => {
75 let hasError = false;
76 const localError = function (error: any) {
77 hasError = true;
78 reject(error);
79 };
80
81 this.removeSync(localError);
82 if (!hasError) {
83 resolve(true);
84 }
85 });
86 }
87
88 public removeSync(onError?: (error: any) => any): void {
89 if (this._isKnown) {

Callers

nothing calls this directly

Calls 2

removeSyncMethod · 0.95
resolveFunction · 0.50

Tested by

no test coverage detected