MCPcopy Create free account
hub / github.com/cactus-compute/cactus-react-native / CactusFileSystem

Interface CactusFileSystem

src/specs/CactusFileSystem.nitro.ts:3–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { HybridObject } from 'react-native-nitro-modules';
2
3export interface CactusFileSystem
4 extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
5 // General
6 getCactusDirectory(): Promise<string>;
7 // File
8 fileExists(path: string): Promise<boolean>;
9 writeFile(path: string, content: string): Promise<void>;
10 readFile(path: string): Promise<string>;
11 deleteFile(path: string): Promise<void>;
12 // Model
13 modelExists(model: string): Promise<boolean>;
14 getModelPath(model: string): Promise<string>;
15 downloadModel(
16 model: string,
17 from: string,
18 callback?: (progress: number) => void
19 ): Promise<void>;
20 deleteModel(model: string): Promise<void>;
21 // Index
22 getIndexPath(name: string): Promise<string>;
23}

Callers 37

initMethod · 0.65
initMethod · 0.65
initMethod · 0.65
getCactusDirectoryMethod · 0.65
getCactusDirectoryMethod · 0.65
fileExistsMethod · 0.65
fileExistsMethod · 0.65
writeFileMethod · 0.65
writeFileMethod · 0.65
readAudioFileFunction · 0.65
readFileMethod · 0.65
readFileMethod · 0.65

Implementers 5

HybridCactusFileSystemandroid/src/main/java/com/margelo/nitr
CactusFileSystemsrc/native/CactusFileSystem.ts
HybridCactusFileSystemSpecnitrogen/generated/android/kotlin/com/
JHybridCactusFileSystemSpecnitrogen/generated/android/c++/JHybrid
HybridCactusFileSystemSpecSwiftnitrogen/generated/ios/c++/HybridCactu

Calls

no outgoing calls

Tested by

no test coverage detected