mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
os: filename => file_name
This commit is contained in:
parent
216c7a16d8
commit
010f3efcf0
17 changed files with 20 additions and 20 deletions
|
@ -95,7 +95,7 @@ fn worker_trunner(p mut sync.PoolProcessor, idx int, thread_id int) voidptr {
|
|||
file := os.realpath(relative_file)
|
||||
// Ensure that the generated binaries will be stored in the temporary folder.
|
||||
// Remove them after a test passes/fails.
|
||||
fname := os.filename(file)
|
||||
fname := os.file_name(file)
|
||||
generated_binary_fname := if os.user_os() == 'windows' { fname.replace('.v', '.exe') } else { fname.replace('.v', '') }
|
||||
generated_binary_fpath := os.join_path(tmpd, generated_binary_fname)
|
||||
if os.exists(generated_binary_fpath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue