Laurent Cheylus
04f90f0f2c
os: remove commented code in home_dir() function ( #24929 )
2025-07-20 06:20:56 +03:00
Delyan Angelov
3725576729
docs,ci: check more vlib modules in the report-missing-dots-in-doc-comments job ( #24928 )
2025-07-19 11:51:01 +03:00
Laurent Cheylus
80fed7add5
os: improve documentation ( #24790 )
2025-06-25 22:29:47 +03:00
Davide Beatrici
1c5a9e1be2
os: do not resolve symlinks in os.find_abs_path_of_executable/1 ( fix #24759 ) ( #24761 )
2025-06-24 02:53:13 +03:00
Denise
ea25988dac
os: support dotfiles := os.walk_ext('.', '', hidden: true)
( #24617 )
2025-06-01 17:10:04 +03:00
Delyan Angelov
f83c8bf478
v.pref: allow for -os wasm32_emscripten
and filtering _d_wasm32_emscripten.c.v
and _notd_wasm32_emscripten.c.v
files. ( #23797 )
2025-02-24 11:23:37 +02:00
Delyan Angelov
16a6e45274
gg: fix ./v -gc none -autofree run examples/tetris/
(avoid return s1 + s2 + s3
, clone the arrays, passed to the fontstash wrapper)
2025-02-07 14:29:43 +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
alexey semenyuk
2ea6115558
os: fix typo ( fix #23267 ) ( #23292 )
2024-12-27 22:19:50 +02:00
Delyan Angelov
55c25b398c
os: add os.get_trimmed_lines() too
2024-12-03 17:01:39 +02:00
Delyan Angelov
25ed6361e0
os: add os.get_raw_lines(), cleanup code of os.get_lines_joined() and os.get_raw_lines_joined()
2024-12-03 13:42:07 +02:00
Delyan Angelov
b801083f13
Revert "os: deprecate os.getwd
in favor of os.get_current_dir
(part 1) ( #22966 )"
...
This reverts commit 93009823f9
.
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
7da79fd221
os: improve robustness of create_folder_when_it_does_not_exist/1 (fix CI false positives for vab-compiles-v-examples
) ( #22548 )
2024-10-17 15:51:04 +03:00
Delyan Angelov
502442ad00
os: implement os.data_dir(), os.state_dir(), os.local_bin_dir() + tests ( #22426 )
2024-10-07 07:23:50 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183 ) ( #22185 )
2024-09-10 11:25:56 +03:00
Yashank
5b7cc63279
docs: fix comment considered as a token ( #21705 )
2024-06-20 12:25:20 +03:00
Turiiya
a2ce55d922
builtin: update last_index_u8
, deprecate index_u8_last
string methods, make consistent with last_index
( #21604 )
2024-06-04 13:21:47 +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
Delyan Angelov
32f7ec8cea
os: add os.write_lines/2 + tests, fix deprecation notice in read_bytes_into_newline in file_test.v ( #21343 )
2024-04-25 08:31:01 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == ''
or s != ''
, instead of s.len == 0
( #21300 )
2024-04-18 02:44:31 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module ( #21183 )
2024-04-12 13:53:02 +03:00
Turiiya
ef3a224ea1
os: clarify some doc comments ( #21209 )
2024-04-07 09:30:12 +03:00
Alexander Medvednikov
acf0107493
builtin: str.last_index(); pref: hide-auto-str;
2024-03-28 18:26:30 +03:00
Turiiya
f77bb32044
all: fix typos ( #21089 )
2024-03-25 12:18:27 +02:00
rustrover
c90af5ffe3
os: remove repetitive words in comments ( #20981 )
2024-03-09 15:22:05 +02:00
syrmel
410bd9db71
os: refactor to use os.stat and os.lstat instead of unsafe C calls ( #20759 )
2024-02-08 19:27:49 +02:00
syrmel
205f2ddd30
os: add os.stat() and helpers ( #20739 )
2024-02-07 07:12:03 +02:00
ScriptMaster
ea2d92d661
os: document os.ls (using readdir), add example ( #20622 )
2024-01-21 20:45:19 +02:00
Delyan Angelov
b120c10f42
os: make os.cache_dir() and os.vtmp_dir() more robust to parallel test executions on windows ( #20495 )
2024-01-12 16:09:08 +02:00
Anton
763f94388b
all: update copyright year ( #20334 )
2024-01-01 23:29:54 +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
Turiiya
acde573deb
os: fix mv_by_cp
for directories ( #20154 )
2023-12-11 20:44:33 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 ( #20095 )
2023-12-05 13:56:59 +02:00
gym603
afaeb74238
os: create the folder described by XDG_CACHE_HOME
, *if it is non empty, and it does not exist yet*, when calling os.cache_dir()
( #20046 )
2023-11-30 23:04:42 +02:00
Turiiya
4e439442ab
os: ignore empty path segments in join_path
( #19877 )
2023-11-15 10:54:20 +02:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11: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
Turiiya
fbefe6858b
os: mention that execute_opt
error contains commands output ( #19742 )
2023-11-03 13:28:42 +02:00
Turiiya
c82c760df7
os: add a new function execute_opt
( #19723 )
2023-11-01 13:17:33 +02:00
Turiiya
9051ac8921
all: fix typos ( #19634 )
2023-10-23 21:21:15 +03:00
Slashscreen
33754f43fa
all: support -os plan9
, $if plan9 {
, and _plan9.c.v
(stage 1 for plan9) ( #19389 )
2023-09-20 07:27:30 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
...
* remove []int.reduce in favour of arrays.fold
* remove datatypes.Set.equal in favour of datatypes.Set.==
* remove datatypes.Set.difference in favour of datatypes.Set.-
* remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
* remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
* remove os.is_writable_folder in favour of os.ensure_folder_is_writable
Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
Alexander Medvednikov
b9a233b1a0
checker: more line-info logic
2023-09-11 01:38:09 +03:00
yuyi
18e60e77de
fmt: remove inline comments ( #19263 )
2023-09-03 23:51:56 +03:00
Turiiya
f755118e7c
vlib: update doc comments ( #19231 )
2023-08-30 08:50:00 +03:00
Turiiya
981ff192e4
os: update doc comment for input_opt
return ( #19223 )
2023-08-27 13:40:21 +03:00
Alexander Medvednikov
6756d28595
all: 2023 copyright
2023-03-28 22:55:57 +02:00
Delyan Angelov
daa9034583
os: return the long path for os.temp_dir() on windows, even for folders like c:\someth~1
( #17623 )
2023-03-14 00:51:52 +02:00