renamed 'delete' to 'remove'

This commit is contained in:
2021-06-07 12:06:35 -05:00
parent 98cb50533d
commit 0330f8a2b5
4 changed files with 17 additions and 16 deletions

View File

@@ -139,7 +139,7 @@ export const create_or_open_file = async (
}
};
export const delete_file = async (conn, remote_path) => {
export const remove_file = async (conn, remote_path) => {
try {
const request = new packet();
request.encode_utf8(remote_path);
@@ -149,7 +149,7 @@ export const delete_file = async (conn, remote_path) => {
return response.decode_i32();
} catch (err) {
return Promise.reject(new Error(`'delete_file' failed: ${err}`));
return Promise.reject(new Error(`'remove_file' failed: ${err}`));
}
};