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

Method onSuccess

packages/core/file-system/index.ts:820–829  ·  view source on GitHub ↗
(fileInfo: { path: string; name: string; extension: string })

Source from the content-addressed store, hash-verified

818 }
819
820 const onSuccess = function (fileInfo: { path: string; name: string; extension: string }): boolean {
821 let entity;
822 if (fileInfo.extension) {
823 entity = createFile(fileInfo);
824 } else {
825 entity = createFolder(fileInfo);
826 }
827
828 return onEntity(entity);
829 };
830
831 const onError = function (error) {
832 throw error;

Callers

nothing calls this directly

Calls 2

createFileFunction · 0.85
createFolderFunction · 0.85

Tested by

no test coverage detected