From 315e4abd7e88c428e78c006ccf2dfdb499911a05 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 17 Jan 2019 23:39:06 -0500 Subject: mkdir should not be recursive by default (#1530) It should return an error if a file with the given path exists and recursive isn't specified. Because mode is not used on windows and rarely used in unix, it is made to the last parameter. In collaboration with Stefan Dombrowski --- js/symlink_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/symlink_test.ts') diff --git a/js/symlink_test.ts b/js/symlink_test.ts index 84dc45279..f03933442 100644 --- a/js/symlink_test.ts +++ b/js/symlink_test.ts @@ -3,7 +3,7 @@ import { testPerm, assert, assertEqual } from "./test_util.ts"; import * as deno from "deno"; testPerm({ write: true }, function symlinkSyncSuccess() { - const testDir = deno.makeTempDirSync() + "/test-symlink-sync"; + const testDir = deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; deno.mkdirSync(oldname); @@ -48,7 +48,7 @@ testPerm({ write: true }, function symlinkSyncNotImplemented() { }); testPerm({ write: true }, async function symlinkSuccess() { - const testDir = deno.makeTempDirSync() + "/test-symlink"; + const testDir = deno.makeTempDirSync(); const oldname = testDir + "/oldname"; const newname = testDir + "/newname"; deno.mkdirSync(oldname); -- cgit v1.2.3