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

Function GetFileList

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

Source from the content-addressed store, hash-verified

2import { UrlBase } from "./base";
3
4export const GetFileList = (relative_path,callback) => {
5 axios.get(UrlBase + `/file/list?path=${relative_path}`).then((response) => {
6 callback(response);
7 });
8}
9
10export const UploadFile = (file,relative_path,callback) => {
11 const formData = new FormData();

Callers 1

FilePage.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected