tempfile icon indicating copy to clipboard operation
tempfile copied to clipboard

Temporary file library for rust

Results 28 tempfile issues
Sort by recently updated
recently updated
newest added

rustc has a `-Csave-temps` option that is intended for debugging (or other cases where temporary file access is useful). We used to have code like this, but it behaved incorrectly...

tempfile creates temporary files with mode 0600, but doesn't seem to restrict permissions on temporary directories at all. I'd like to create a temporary directory with mode 0700 (and not...

As the title says, currently the code doesn't make any validations if the `prefix` or `suffix` are valid path component values (i.e. they don't contain a slash or `\0`). (If...

So, unix really is lovely... ```sh > mkdir -p /foo/bar > cd /foo/bar > chmod a-x /foo > touch first > touch /foo/bar/second touch: cannot touch '/foo/bar/second': Permission denied ```...

Linux supports linking a securely created temporary file (`O_TMPFILE`) back into the filesystem, so long as it wasn't created with `O_EXCL`. I believe this will improve the performance (and security)...

Like #2 and #3, it would be nice to get a normal file after calling `persist` on a `NamedTemporaryFile`. `NamedTemporaryFile` is opened with `0o600`, I'd expect to get a `0o644`...

- Instead of setting up a predictable userspace RNG, we get unpredictable random bytes directly from the OS. This fixes #178. - To obtain a uniformly distributed alphanumeric string, we...

It would be great it if it were possible to have some API where I can pass a prefix / name ending up with a self-deleting temp file. I suppose...

This patch adds a keep() method to TempDir so that it better matches the interface of NamedTempFile. Closes #194