summary refs log tree commit diff stats
path: root/lib/std/tempfiles.nim
Commit message (Collapse)AuthorAgeFilesLines
* move widestrs out of system (#20462)metagn2022-10-011-0/+2
| | | | | * move widestrs out of system * fix osproc
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* [std/tempfiles] docs improvement (#18936)flywind2021-10-011-5/+6
| | | | | * unify comments * more
* Fix initrand to avoid random number sequences overlapping (#18744)Tomohiro2021-09-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | * Fix initrand to avoid random number sequences overlapping * Minor fix * Fix compile error on js backend * Disable new test for js backend * Minor fix * tempfiles module uses random.initRand() * Remove unused module import from lib/std/tempfiles.nim * Initialize baseState in initRand() * Run tests/stdlib/trandom.nim from tests/test_nimscript.nims * baseState is initialized only with sysrand.urandom and quit if failed * Add comments
* fix #17898(randomPathName called twice in a row can return the same string ↵flywind2021-08-221-3/+17
| | | | | | | on windows) (#18729) * close #17898 * no need to consider js
* improve std/tempfiles (#17920)Timothee Cour2021-05-111-21/+49
| | | | | | | | * improve std/tempfiles * fixup * fix windows * improve test * improve runnableExamples and tests * address comment
* gitutils: add diffStrings, diffFiles, and use it in testament to compare ↵Timothee Cour2021-04-301-23/+25
| | | | | | | | | | | | | expected vs gotten (#17892) * gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten * refactor with createTempDir * cleanup * refacotr * PRTEMP fake test spec changes to show effect of diffStrings * add runnableExamples for experimental/diff + cross-reference with gitutils * Revert "PRTEMP fake test spec changes to show effect of diffStrings" This reverts commit 57dc8d642dce6c1127c98b7cbc9edbfe747d4047.
* fix #17888: remove undefined behavior for posix.open; fix ↵Timothee Cour2021-04-291-3/+10
| | | | | | | | | | | tempfiles.createTempFile (#17889) * fix #17888: remove undefined behavior for posix.open; fix tempfiles.createTempFile * fix for tests/async/tasyncfile.nim * hide mode for now * add notice regarding stability
* close #9372 add std/tempfiles (#17361)flywind2021-04-211-0/+139
* close #9372 add std/tempfile