diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-14 20:57:45 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-14 21:05:16 +0100 |
commit | d26766c4c4015990703e84e8136f96d222edbc97 (patch) | |
tree | 7f412f8ca98d2b04323da5cf2fd607efbd6c408d /src/extern/tempfile.nim | |
parent | a8f05f18fdd64485c26b453e62e8073b50e271ef (diff) | |
download | chawan-d26766c4c4015990703e84e8136f96d222edbc97.tar.gz |
Move around some modules
* extern -> gone, runproc absorbed by pager, others moved into io/ * display -> local/ (where else would we display?) * xhr -> html/ * move out WindowAttributes from term, so we don't depend on local from server
Diffstat (limited to 'src/extern/tempfile.nim')
-rw-r--r-- | src/extern/tempfile.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/extern/tempfile.nim b/src/extern/tempfile.nim deleted file mode 100644 index 5968270b..00000000 --- a/src/extern/tempfile.nim +++ /dev/null @@ -1,18 +0,0 @@ -import std/os - -var tmpf_seq: int -proc getTempFile*(tmpdir: string, ext = ""): string = - if not dirExists(tmpdir): - createDir(tmpdir) - var tmpf = tmpdir / "chatmp" & $getCurrentProcessId() & "-" & $tmpf_seq - if ext != "": - tmpf &= "." - tmpf &= ext - while fileExists(tmpf): - inc tmpf_seq - tmpf = tmpdir / "chatmp" & $tmpf_seq - if ext != "": - tmpf &= "." - tmpf &= ext - inc tmpf_seq - return tmpf |