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