diff --git a/README.md b/README.md index 2e5572e..bb20fb7 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,7 @@ All options are optional :) absolute paths are fine as long as they point to a location under the system's default temporary directory. Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access, as tmp will not check the availability of the path, nor will it establish the requested path for you. + * `tmpdir`: allows you to override the system's root tmp directory * `tries`: how many times should the function try to get a unique filename before giving up, default `3` * `keep`: signals that the temporary file or directory should not be deleted on exit, default is `false` * In order to clean up, you will have to call the provided `cleanupCallback` function manually. diff --git a/docs/global.html b/docs/global.html index e225ad4..0c3dbfa 100644 --- a/docs/global.html +++ b/docs/global.html @@ -908,7 +908,7 @@

set
Source:
@@ -1434,7 +1434,7 @@

Parameters:
Source:
@@ -1522,7 +1522,7 @@

cl
Source:
@@ -1729,7 +1729,7 @@

Parameters:
Source:
@@ -1936,7 +1936,7 @@
Parameters:
Source:
@@ -2093,7 +2093,7 @@
Properties:
Source:
@@ -2317,7 +2317,7 @@
Parameters:
Source:
@@ -2555,7 +2555,7 @@
Parameters:
Source:
@@ -2735,7 +2735,7 @@
Properties:
Source:
@@ -2978,7 +2978,7 @@
Properties:
- tmp directory relative to the system tmp directory to use + tmp directory relative to the root tmp directory in use @@ -3045,6 +3045,37 @@
Properties:
+ + + tmpdir + + + + + +string + + + + + + + + + + + <nullable>
+ + + + + + + the root tmp directory which overrides the os tmpdir + + + + unsafeCleanup @@ -3172,7 +3203,7 @@
Properties:
Source:
@@ -3246,7 +3277,7 @@

simpleC
Source:
@@ -3429,7 +3460,7 @@

Parameters:
Source:
@@ -3479,7 +3510,7 @@

Home

Global