1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: realpath => real_path

This commit is contained in:
yuyi
2020-03-20 23:41:18 +08:00
committed by GitHub
parent 5f32663714
commit 2f27758a4b
30 changed files with 71 additions and 71 deletions

View File

@ -62,7 +62,7 @@ fn test_write_and_read_bytes() {
file_name := './byte_reader_writer.tst'
payload := [`I`, `D`, `D`, `Q`, `D`]
mut file_write := os.create(os.realpath(file_name)) or {
mut file_write := os.create(os.real_path(file_name)) or {
eprintln('failed to create file $file_name')
return
}
@ -75,7 +75,7 @@ fn test_write_and_read_bytes() {
assert payload.len == os.file_size(file_name)
mut file_read := os.open(os.realpath(file_name)) or {
mut file_read := os.open(os.real_path(file_name)) or {
eprintln('failed to open file $file_name')
return
}