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

Method getPath

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

* Gets actual url for relative path to src * e.g. getPath(src, "../path/to/file.txt") => actual url * @param src Directory url * @param path Relative file/directory path * @param onSuccess Callback function on success returns actual url * @param onFail Callback function on error retur

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

Source from the content-addressed store, hash-verified

145 * @param onFail Callback function on error returns error object
146 */
147 getPath(
148 src: string,
149 path: string,
150 onSuccess: (url: string) => void,

Callers 13

getPathFunction · 0.65
encodeMethod · 0.65
getFileMethod · 0.65
runMethod · 0.65
compareFileTextMethod · 0.65
getContentProviderUriMethod · 0.65
resolveMimeTypeMethod · 0.65
runMethod · 0.65
getStorageVolumesMethod · 0.65
getPathMethod · 0.65
getFileMethod · 0.65
fileFromUrlMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected