mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-10 04:05:44 +00:00
7a2b6dbdda
* Initial commit of io2 module * Rename to io2. Add createPath with permissions. Add writeFile with permissions. Add tests. * Add test_io2 to all tests. * Add posix permissions. * Add toString procedure for set[Permission] and tests. * Remove safeio.nim * Add setPermissions procedures. Fix writeFile() to change permissions. Add more writeFile() tests. * Change C ReadOnly/WriteOnly/ReadWrite to pair of Read/Write. Add tests for openFile. * File handles is no inherited by default, with option to turn on inheritance. * Review comments fixes. More tests. * Fix x86 compilation problems. * Rename toSet -> toPermissions. * Avoid race condition on writeFile permissions.
26 lines
636 B
Nim
26 lines
636 B
Nim
# stew
|
|
# Copyright 2018-2019 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
#
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
#
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
import
|
|
ranges/all,
|
|
test_base32,
|
|
test_base58,
|
|
test_base64,
|
|
test_bitops2,
|
|
test_bitseqs,
|
|
test_byteutils,
|
|
test_endians2,
|
|
test_macros,
|
|
test_objects,
|
|
test_ptrops,
|
|
test_results,
|
|
test_varints,
|
|
test_ctops,
|
|
test_io2
|