summaryrefslogtreecommitdiff
path: root/cli/rt
diff options
context:
space:
mode:
Diffstat (limited to 'cli/rt')
-rw-r--r--cli/rt/30_files.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/rt/30_files.js b/cli/rt/30_files.js
index 9ff2fe368..fe44727c2 100644
--- a/cli/rt/30_files.js
+++ b/cli/rt/30_files.js
@@ -28,7 +28,10 @@
) {
checkOpenOptions(options);
const mode = options?.mode;
- const rid = sendSync("op_open", { path: pathFromURL(path), options, mode });
+ const rid = sendSync(
+ "op_open_sync",
+ { path: pathFromURL(path), options, mode },
+ );
return new File(rid);
}
@@ -40,7 +43,7 @@
checkOpenOptions(options);
const mode = options?.mode;
const rid = await sendAsync(
- "op_open",
+ "op_open_async",
{ path: pathFromURL(path), options, mode },
);