Bastian Buck
d2f19ac494
os: add a glob() function ( #10497 )
2021-06-30 08:30:18 +03:00
Bastian Buck
1e9e717111
os: fix using Win32-API with TCC32 ( #10496 )
2021-06-21 14:14:58 +03:00
Delyan Angelov
48b3ab831b
ci: fix failing test test_realpath_existing for os.real_path on macos
2021-06-15 14:13:12 +03:00
Delyan Angelov
0c922f5570
ci: fix the failing os.real_path tests on windows
2021-06-15 13:34:28 +03:00
Delyan Angelov
51596da314
os: fix returning parameter in [manualfree]os.real_path(fpath), when fpath==""
2021-06-15 13:10:41 +03:00
Delyan Angelov
4772146a7e
tests: fix failing tests on M1
2021-06-07 18:23:18 +03:00
Bastian Buck
d6e462a6ca
os: fix os.is_link and os.symlink on windows, add new functions os.getppid, os.getgid, os.getegid ( #10251 )
2021-05-29 23:26:13 +03:00
Leigh McCulloch
49deeac71e
os: fix file read end-of-file detection ( #10070 )
2021-05-13 09:48:55 +03:00
Enzo
fb7ddcd4c9
checker: fix looking for unprefixed os
functions ( #9968 )
2021-05-02 21:46:12 +03:00
Alexander Medvednikov
7f5c3cc1f8
checker: do not allow modifying consts via mutable refs
2021-04-24 14:08:50 +03:00
Bastian Buck
aa49bc2708
os: implement os.truncate() + improve error handling ( #9752 )
2021-04-16 11:53:44 +03:00
Alexander Medvednikov
57e6138a61
all: remove byteptr and charptr; replace them with &byte and &char
2021-04-04 17:43:32 +03:00
zakuro
c8416f9a54
all: deprecate write_str and replace it with write_string ( #9369 )
2021-03-20 17:25:51 +01:00
zakuro
e3c0f305b2
os: deprecate os.File.write_bytes
and add os.File.write_ptr
( #9370 )
2021-03-20 09:02:28 +02:00
Delyan Angelov
b7a5fa7fbe
os: fix v -cflags "-Werror" test vlib/os/
2021-03-18 19:45:04 +02:00
Lukas Neubert
fecf4a6f58
os: fix rmdir_all panic with hidden dirs ( #9271 )
2021-03-13 08:43:38 +02:00
StunxFS
90d942e2ec
os: add missing '.exe' in os_test.v ( #9269 )
2021-03-12 18:05:29 +02:00
Delyan Angelov
def53fd73f
os: prevent os.exists_in_system_path() from panicing
2021-03-12 17:05:26 +02:00
Delyan Angelov
995db65471
os: fix os.cp_all, by making the dst folder, if it does not exist already
2021-03-12 16:29:27 +02:00
Lukas Neubert
fdcfe397d4
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc ( #9136 )
2021-03-06 21:04:51 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg)
-> panic(err)
( #9022 )
2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax ( #8950 )
2021-02-28 23:20:21 +03:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) ( #8924 )
2021-02-28 22:24:29 +03:00
Stanislav Ershov
6a752512b2
os: fix os.real_path on Windows ( #8822 )
2021-02-19 11:20:06 +02:00
zakuro
4e2418e9cf
os: add test for os.file_name ( #8757 )
2021-02-15 07:37:35 +01:00
Larpon
65f2420516
os: fix cp_all mkdir panic ( #8680 )
2021-02-12 01:55:36 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ?
/ optfn() or {...}
for fn optfn() ? {}
2021-01-26 16:43:17 +02:00
Delyan Angelov
dbaccd4272
vfmt: shorten main.const_name
to just const_name
2021-01-25 20:57:33 +02:00
Delyan Angelov
728344ff65
ci: fix v test-cleancode
2021-01-25 12:55:01 +02:00
Delyan Angelov
722a603222
cgen: fix os.args initialization, so that const x = os.args[0]
works
2021-01-10 15:17:24 +02:00
clubby789
0ab6a8cd01
os: add a posix_set_permission_bit
function ( #7754 )
2021-01-04 19:57:17 +02:00
Delyan Angelov
88a8507dd8
os: vfmt most of os
, add it to v test-cleancode
2020-12-16 11:08:23 +02:00
yuyi
095327134e
os: fix trailing slash in dir() ( #7283 )
2020-12-12 10:59:43 +01:00
Emily Hudson
cd2a2cef25
vlib/net: add buffered IO, x.net -> net ( #6754 )
2020-11-15 22:54:47 +02:00
Alexander Medvednikov
1b1d17cfb5
os: basic proof of concept stdout capture; autofree: small fixes
2020-11-05 08:44:37 +01:00
Alexander Medvednikov
4879661f5a
os: remove base_dir(); dir() and base() fixes
2020-10-01 01:25:52 +02:00
Delyan Angelov
03258db26d
ci: other mut vlib test fixes
2020-09-27 11:18:55 +03:00
Marcin
34884c1631
os: fix binary mode read/write on windows ( #6431 )
2020-09-20 16:28:45 +02:00
Nick Treleaven
b552c29bef
os: add fn read_bytes_into
with buffer argument ( #6365 )
2020-09-14 15:34:34 +02:00
Delyan Angelov
ce6d2759f5
os: add os.open_stdin/0 and os.File.get_line/0
2020-09-10 16:57:03 +03:00
Larpon
51d7d7cfae
os: fix os.mv edge case and Windows style paths ( #6302 )
2020-09-06 13:12:07 +02:00
Larpon
b4b898b769
os: enable is_file tests ( #6312 )
2020-09-06 12:39:02 +02:00
Larpon
81778e507f
os: is_file() ( #6301 )
2020-09-04 22:27:52 +02:00
Larpon
efa49bfbb7
os: make behave more like Unix "mv" command ( #6300 )
2020-09-04 13:08:47 +02:00
Delyan Angelov
718a4692dd
os: enable test_write_and_read_bytes again
2020-08-29 07:43:31 +03:00
Delyan Angelov
1baa7ef806
os: implement os.write_file_array and os.read_file_array .
2020-07-13 10:46:37 +03:00
Mike 'Fuzzy' Partin
206e64d72c
os: add os.uname()
2020-06-14 16:46:30 +03:00
Daniel Däschle
0024ff848d
parser: check if the last or {} block expression is valid
...
These checks allows for:
a) `x := call() or { 'abc' }`
b) `x := call() or { panic('abc') }`
c) `x := call() or { exit(123) }`
d) `x := call() or { continue }`
e) `x := call() or { break }`
f) `x := call() or { return }`
... but produce errors for:
g) `x := call() or { println('an error') }` , etc.
2020-04-07 17:36:00 +03:00
Delyan Angelov
206c1f4ca1
os: implement os.is_writable_folder/1
2020-04-05 16:56:54 +03:00
yuyi
9c5de77f12
os: ext => file_ext
2020-03-26 14:18:08 +01:00