added directory snapshot

This commit is contained in:
2021-03-09 16:05:24 -06:00
parent b553984808
commit e783d490a7
4 changed files with 354 additions and 295 deletions

View File

@@ -12,10 +12,13 @@ export const connect = async (host_or_ip, port, password) => {
export const create_api = conn => {
return {
directory : {
list : async (remote_path, page_reader_cb) =>
ops.list_directory(conn, remote_path, page_reader_cb),
create : async remote_path => ops.create_directory(conn, remote_path),
remove : async remote_path => ops.remove_directory(conn, remote_path),
create: async remote_path => ops.create_directory(conn, remote_path),
list: async (remote_path, page_reader_cb) =>
ops.list_directory(conn, remote_path, page_reader_cb),
remove: async remote_path => ops.remove_directory(conn, remote_path),
snapshot: async remote_path => {
return ops.snapshot_directory(conn, remote_path);
},
},
file : {
create_or_open : async remote_path => new file(