diff options
Diffstat (limited to 'cli/js/ops/fs/make_temp.ts')
-rw-r--r-- | cli/js/ops/fs/make_temp.ts | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cli/js/ops/fs/make_temp.ts b/cli/js/ops/fs/make_temp.ts deleted file mode 100644 index 3996744d1..000000000 --- a/cli/js/ops/fs/make_temp.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -import { sendSync, sendAsync } from "../dispatch_json.ts"; - -export interface MakeTempOptions { - dir?: string; - prefix?: string; - suffix?: string; -} - -export function makeTempDirSync(options: MakeTempOptions = {}): string { - return sendSync("op_make_temp_dir", options); -} - -export function makeTempDir(options: MakeTempOptions = {}): Promise<string> { - return sendAsync("op_make_temp_dir", options); -} - -export function makeTempFileSync(options: MakeTempOptions = {}): string { - return sendSync("op_make_temp_file", options); -} - -export function makeTempFile(options: MakeTempOptions = {}): Promise<string> { - return sendAsync("op_make_temp_file", options); -} |