Skip to content

Little illustration of a problem with current (v0.34.0) deno's permission checks for makeTempDir function

Notifications You must be signed in to change notification settings

Acerbic/deno_makedirtemp_bug_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

makeTempDir issue

Deno.makeTempDir and the related makeTempDirSync, makeTempFile, makeTempFileSync don't work with whitelisted --allow-write relative paths. I.e. if you whitelist a relative path and try to use makeTempDir with MakeTempDirOptions.dir, the call will fail with "Permission Denied" error. Using absolute path in such manner works fine.

Works

deno --allow-write=./out mkdir.ts
deno --allow-write=/tmp maketempdir.ts /tmp
deno --allow-write maketempdir.ts ./out

Fails

deno --allow-write=./out maketempdir.ts ./out

About

Little illustration of a problem with current (v0.34.0) deno's permission checks for makeTempDir function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published