(dest: string, onError?: (error: any) => any)
| 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) => { |
nothing calls this directly
no test coverage detected