added directory snapshot
This commit is contained in:
11
src/index.js
11
src/index.js
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user