(localFilePath: string)
| 551 | } |
| 552 | |
| 553 | writeToFile(localFilePath: string): Task { |
| 554 | let url; |
| 555 | if (localFilePath?.indexOf('file:') > -1) { |
| 556 | url = NSURL.URLWithString(localFilePath); |
| 557 | } else { |
| 558 | url = NSURL.fileURLWithPath(localFilePath); |
| 559 | } |
| 560 | return Task.fromNative(this.native.writeToFile(url)); |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | export class Storage implements IStorage { |
nothing calls this directly
no test coverage detected