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

Interface SDcard

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

Source from the content-addressed store, hash-verified

64 | { id: string; type: 'done' | 'done-searching' | 'done-replacing' | 'error'; action: string; [key: string]: any };
65
66interface SDcard {
67 /**
68 * Copy file/directory to given destination
69 * @param src Source url
70 * @param dest Destination url
71 * @param onSuccess Callback function on success returns url of copied file/dir
72 * @param onFail Callback function on error returns error object
73 */
74 copy(
75 src: string,
76 dest: string,
77 onSuccess: (url: string) => void,
78 onFail: (err: any) => void,
79 ): void;
80 /**
81 * Creates new directory at given source url.
82 * @param src Source url
83 * @param dirName New directory name
84 * @param onSuccess Callback function on success returns url of new directory
85 * @param onFail callback function on error returns error object
86 */
87 createDir(
88 src: string,
89 dirName: string,
90 onSuccess: (url: string) => void,
91 onFail: (err: any) => void,
92 ): void;
93 /**
94 * Creates new file at given source url.
95 * @param src Source url
96 * @param fileName New file name
97 * @param onSuccess Callback function on success returns url of new directory
98 * @param onFail Callback function on error returns error object
99 */
100 createFile(
101 src: string,
102 fileName: string,
103 onSuccess: (url: string) => void,
104 onFail: (err: any) => void,
105 ): void;
106 /**
107 * Deletes file/directory
108 * @param src Source url of file/directory
109 * @param onSuccess Callback function on success returns source url
110 * @param onFail Callback function on error returns error object
111 */
112 delete(
113 src: string,
114 onSuccess: (url: string) => void,
115 onFail: (err: any) => void,
116 ): void;
117 /**
118 * Checks if given file/directory
119 * @param src File/Directory url
120 * @param onSuccess Callback function on success returns string "TRUE" or "FALSE"
121 * @param onFail Callback function on error returns error object
122 */
123 exists(

Callers 79

copySelectionMethod · 0.65
copySelectionMethod · 0.65
copyLogsToClipboardFunction · 0.65
renderFunction · 0.65
copyTextFunction · 0.65
contextMenuHandlerFunction · 0.65
"copy-device-info"Function · 0.65
showFileInfoFunction · 0.65
createDirectoryFunction · 0.65
createDirFunction · 0.65
createDirectoryFunction · 0.65
createDirectoryFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected