diff options
Diffstat (limited to 'js/mkdir.ts')
-rw-r--r-- | js/mkdir.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/mkdir.ts b/js/mkdir.ts index 46578b058..8040bd51b 100644 --- a/js/mkdir.ts +++ b/js/mkdir.ts @@ -1,6 +1,6 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. import * as msg from "gen/msg_generated"; -import { flatbuffers } from "flatbuffers"; +import * as flatbuffers from "./flatbuffers"; import * as dispatch from "./dispatch"; /** Creates a new directory with the specified path and permission @@ -26,7 +26,7 @@ function req( path: string, mode: number ): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { - const builder = new flatbuffers.Builder(); + const builder = flatbuffers.createBuilder(); const path_ = builder.createString(path); msg.Mkdir.startMkdir(builder); msg.Mkdir.addPath(builder, path_); |