23 Commits

Author SHA1 Message Date
Delyan Angelov
2cfeb6d07b os: add os.write_bytes/2 as a complement to os.read_bytes/1, add test 2025-06-28 09:27:09 +03:00
Denise
ea25988dac
os: support dotfiles := os.walk_ext('.', '', hidden: true) (#24617) 2025-06-01 17:10:04 +03:00
kbkpbot
0c1a02f910
os: force using C.CREATE_NO_WINDOW on windows in os.raw_execute/1 (fix #24390) (#24418) 2025-05-05 19:48:11 +03:00
Delyan Angelov
c5ace0eded
ci: add a s390x job (using QEMU), running the endianness related tests in builtin, os, and encoding.binary (#24153) 2025-04-07 23:35:33 +03:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
kbkpbot
2a69b7c525
os: add split_path/1: os.split_path('/usr/lib/test.so') -> ('/usr/lib','test','.so'); fix platform dependent behaviour of os.dir/1, os.base/1, os.file_name/1 (#23532) 2025-01-21 06:58:47 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966)"
This reverts commit 93009823f992176166bf5e5d90c9627adb46bdc0.
2024-11-25 15:10:15 +02:00
Elsie
93009823f9
os: deprecate os.getwd in favor of os.get_current_dir (part 1) (#22966) 2024-11-25 12:17:33 +02:00
Delyan Angelov
c5e8ad19df
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540) 2024-10-16 14:18:10 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
Delyan Angelov
c23c543b67
os: simplify and unify os.join_path and os.join_path_single, and add more tests (#21494) 2024-05-13 17:33:10 +03:00
Henrik Holst
76142b18a9
os: fix join-path (#21425) 2024-05-13 10:37:55 +03:00
Henrik Holst
c7fb7553b7
os: fix os.execute stderr redirection (fix #20986) (#21404) 2024-05-03 00:16:02 +03:00
Turiiya
1363cc85fd
time: update unix time acces, fix issues related to deviating unix times (#21293) 2024-04-17 00:33:37 +03:00
Delyan Angelov
f172a040ef
ci: improve test robustness on windows (#21116) 2024-03-28 07:29:17 +02:00
syrmel
382d7658cd
os: add error_posix() and error_win32() for explicit platform error handling and default behavior (#20694) 2024-01-31 07:25:07 +02:00
Delyan Angelov
672fe9b8eb tests: make v vlib/os/os_test.c.v pass on windows, for users != admin, skipping the os.symlink checks 2024-01-23 17:03:01 +02:00
Turiiya
e5e26db5c4
os: update mv fns, improve performance, add params struct to control overwrite behavior (#20156) 2023-12-13 09:43:18 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Turiiya
4e439442ab
os: ignore empty path segments in join_path (#19877) 2023-11-15 10:54:20 +02:00
Turiiya
b7400fc058
os: add fast path to mkdir_all, when the given folder already exists (#19869) 2023-11-14 23:41:39 +02:00
JalonSolov
c494b63d75
os,picohttpparser,sokol,strconv: prepare for making -W impure-v the default (#19846) 2023-11-12 09:52:14 +02:00