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

Method copySync

packages/core/file-system/index.ts:484–502  ·  view source on GitHub ↗
(dest: string, onError?: (error: any) => any)

Source from the content-addressed store, hash-verified

482 }
483
484 public copySync(dest: string, onError?: (error: any) => any): any {
485 this._checkAccess();
486
487 this._locked = true;
488
489 const that = this;
490 const localError = (error) => {
491 that._locked = false;
492 if (onError) {
493 onError(error);
494 }
495 };
496
497 const content = getFileAccess().copySync(this.path, dest, localError);
498
499 this._locked = false;
500
501 return content;
502 }
503
504 public read(): Promise<any> {
505 return new Promise<any>((resolve, reject) => {

Callers

nothing calls this directly

Calls 3

_checkAccessMethod · 0.95
getFileAccessFunction · 0.85
copySyncMethod · 0.65

Tested by

no test coverage detected