updated README.md

This commit is contained in:
2021-03-05 04:16:08 +00:00
parent 6a5a8e7669
commit 2872ee0d6c

View File

@@ -172,7 +172,7 @@ await api.file.upload('C:\\my_file.txt', '/my_file.txt', progress_cb, false, tru
// Truncate / resize file // Truncate / resize file
{ {
const f = await api.file.create_or_open('/my_file.txt'); const f = await api.file.create_or_open('/my_file.txt');
const b = await f.truncate(10); await f.truncate(10);
await f.close(); await f.close();
} }
``` ```