MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getFileNameFromContent

Function getFileNameFromContent

apps/toolbox/src/pages/fs-helper.ts:216–219  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

214}
215
216function getFileNameFromContent(content: string) {
217 const file = getFileAccess().getFile(content);
218 return decodeURIComponent(file.name).split('/').pop().toLowerCase();
219}
220
221let lastDownload: File;
222export function createFileInDownloads() {

Callers 1

saveFileFunction · 0.85

Calls 3

getFileAccessFunction · 0.90
popMethod · 0.80
getFileMethod · 0.65

Tested by

no test coverage detected