add os.getCacheDir (#18126)

* add `os.getCacheDir`

* fixup

* address comments
This commit is contained in:
Timothee Cour 2021-05-31 13:16:33 -07:00 • committed by GitHub
commit 9559350e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 7 deletions

View file

@ -175,10 +175,11 @@
- `--gc:orc` is now 10% faster than previously for common workloads. If
you have trouble with its changed behavior, compile with `-d:nimOldOrc`.
- `os.FileInfo` (returned by `getFileInfo`) now contains `blockSize`,
determining preferred I/O block size for this file object.
- Added `os.getCacheDir()` to return platform specific cache directory.
- Added a simpler to use `io.readChars` overload.
- Added `**` to jsffi.