mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
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 <sdo451@gmail.com>
This commit is contained in:
parent
d06c95637a
commit
315e4abd7e
9 changed files with 73 additions and 33 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue