MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / DeleteFile

Function DeleteFile

ui/src/Request/file.js:18–22  ·  view source on GitHub ↗
(relative_path,callback)

Source from the content-addressed store, hash-verified

16}
17
18export const DeleteFile = (relative_path,callback) => {
19 axios.delete(UrlBase + `/file/?path=${relative_path}`).then((response) => {
20 callback(response);
21 });
22}
23
24export const DownloadFile = (relative_path,callback) => {
25 const filename = relative_path.split("/").pop()

Callers 1

FilePage.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected