MCPcopy Create free account
hub / github.com/NativeScript/firebase / writeToFile

Method writeToFile

packages/firebase-storage/index.ios.ts:553–561  ·  view source on GitHub ↗
(localFilePath: string)

Source from the content-addressed store, hash-verified

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
564export class Storage implements IStorage {

Callers

nothing calls this directly

Calls 2

writeToFileMethod · 0.65
fromNativeMethod · 0.45

Tested by

no test coverage detected