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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user