Skip to content

Commit 1bd5f2a

Browse files
Update README.md
Remove mention of paths in the `template` option description.
1 parent 7ae22ed commit 1bd5f2a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,8 @@ All options are optional :)
341341
* `mode`: the file mode to create with, falls back to `0o600` on file creation and `0o700` on directory creation
342342
* `prefix`: the optional prefix, defaults to `tmp`
343343
* `postfix`: the optional postfix
344-
* `template`: [`mkstemp`][3] like filename template, no default, can be either an absolute or a relative path that resolves
345-
to a relative path of the system's default temporary directory, must include `XXXXXX` once for random name generation, e.g.
346-
'foo/bar/XXXXXX'. Absolute paths are also fine as long as they are relative to os.tmpdir().
347-
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
348-
as tmp will not check the availability of the path, nor will it establish the requested path for you.
344+
* `template`: [`mkstemp`][3] like filename template, no default, must include `XXXXXX` once for random name generation, e.g.
345+
'foo-bar-XXXXXX'.
349346
* `dir`: the optional temporary directory that must be relative to the system's default temporary directory.
350347
absolute paths are fine as long as they point to a location under the system's default temporary directory.
351348
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,

0 commit comments

Comments
 (0)