MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / createFile

Method createFile

src/plugins/sdcard/index.d.ts:100–100  ·  view source on GitHub ↗

* Creates new file at given source url. * @param src Source url * @param fileName New file name * @param onSuccess Callback function on success returns url of new directory * @param onFail Callback function on error returns error object

(
    src: string,
    fileName: string,
    onSuccess: (url: string) => void,
    onFail: (err: any) => void,
  )

Source from the content-addressed store, hash-verified

98 * @param onFail Callback function on error returns error object
99 */
100 createFile(
101 src: string,
102 fileName: string,
103 onSuccess: (url: string) => void,

Callers 1

runMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected