1.4.x_branch #1
5
.vim/coc-settings.json
Normal file
5
.vim/coc-settings.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"winfsp"
|
||||
]
|
||||
}
|
||||
@@ -10,7 +10,7 @@ const _snapshot_directory = async (conn, remote_path) => {
|
||||
request.encode_utf8(remote_path);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteJSONCreateDirectorySnapshot',
|
||||
'::json_create_directory_snapshot',
|
||||
request
|
||||
);
|
||||
response.decode_ui32(); // Service flags
|
||||
@@ -25,7 +25,7 @@ const _snapshot_directory = async (conn, remote_path) => {
|
||||
released = true;
|
||||
const request = new packet();
|
||||
request.encode_ui64(data.handle);
|
||||
await conn.send('::RemoteJSONReleaseDirectorySnapshot', request);
|
||||
await conn.send('::json_release_directory_snapshot', request);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ const _snapshot_directory = async (conn, remote_path) => {
|
||||
request.encode_ui32(page);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteJSONReadDirectorySnapshot',
|
||||
'::json_read_directory_snapshot',
|
||||
request
|
||||
);
|
||||
response.decode_ui32(); // Service flags
|
||||
@@ -83,7 +83,7 @@ export const close_file = async (
|
||||
request.encode_ui64(handle);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSERelease',
|
||||
'::fuse_release',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -101,7 +101,7 @@ export const create_directory = async (conn, remote_path) => {
|
||||
request.encode_utf8(remote_path);
|
||||
request.encode_ui16((7 << 6) | (5 << 3));
|
||||
|
||||
const response = await conn.send('::RemoteFUSEMkdir', request);
|
||||
const response = await conn.send('::fuse_mkdir', request);
|
||||
response.decode_ui32(); // Service flags
|
||||
|
||||
return response.decode_i32();
|
||||
@@ -122,7 +122,7 @@ export const create_or_open_file = async (
|
||||
request.encode_ui32(2 | 4); // Read-Write, Create
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSECreate',
|
||||
'::fuse_create',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -144,7 +144,7 @@ export const remove_file = async (conn, remote_path) => {
|
||||
const request = new packet();
|
||||
request.encode_utf8(remote_path);
|
||||
|
||||
const response = await conn.send('::RemoteFUSEUnlink', request);
|
||||
const response = await conn.send('::fuse_unlink', request);
|
||||
response.decode_ui32(); // Service flags
|
||||
|
||||
return response.decode_i32();
|
||||
@@ -256,10 +256,7 @@ export const download_file = async (
|
||||
|
||||
export const get_drive_information = async (conn) => {
|
||||
try {
|
||||
const response = await conn.send(
|
||||
'::RemoteWinFSPGetVolumeInfo',
|
||||
new packet()
|
||||
);
|
||||
const response = await conn.send('::winfsp_get_volume_info', new packet());
|
||||
response.decode_ui32(); // Service flags
|
||||
|
||||
const result = response.decode_i32();
|
||||
@@ -295,7 +292,7 @@ export const get_file_attributes = async (
|
||||
request.encode_ui32(0);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEFgetattr',
|
||||
'::fuse_fgetattr',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -324,7 +321,7 @@ export const get_file_attributes2 = async (
|
||||
request.encode_ui32(0);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEGetattr',
|
||||
'::fuse_getattr',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -365,7 +362,7 @@ export const open_file = async (conn, remote_path, optional_thread_id) => {
|
||||
request.encode_ui32(2); // Read-Write
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEOpen',
|
||||
'::fuse_open',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -397,7 +394,7 @@ export const read_file = async (
|
||||
request.encode_ui64(handle);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSERead',
|
||||
'::fuse_read',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -418,7 +415,7 @@ export const remove_directory = async (conn, remote_path) => {
|
||||
const request = new packet();
|
||||
request.encode_utf8(remote_path);
|
||||
|
||||
const response = await conn.send('::RemoteFUSERmdir', request);
|
||||
const response = await conn.send('::fuse_rmdir', request);
|
||||
response.decode_ui32(); // Service flags
|
||||
|
||||
return response.decode_i32();
|
||||
@@ -443,7 +440,7 @@ export const truncate_file = async (
|
||||
request.encode_ui64(handle);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEFtruncate',
|
||||
'::fuse_ftruncate',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -596,7 +593,7 @@ export const write_base64_file = async (
|
||||
request.encode_ui64(handle);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEWriteBase64',
|
||||
'::fuse_write_base64',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
@@ -629,7 +626,7 @@ export const write_file = async (
|
||||
request.encode_ui64(handle);
|
||||
|
||||
const response = await conn.send(
|
||||
'::RemoteFUSEWrite',
|
||||
'::fuse_write',
|
||||
request,
|
||||
optional_thread_id
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user