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

os: filename => file_name

This commit is contained in:
yuyi
2020-03-19 22:49:07 +08:00
committed by GitHub
parent 216c7a16d8
commit 010f3efcf0
17 changed files with 20 additions and 20 deletions

View File

@@ -158,7 +158,7 @@ fn (foptions &FormatOptions) format_file(file string) {
table := table.new_table()
file_ast := parser.parse_file(file, table, .parse_comments)
formatted_content := fmt.fmt(file_ast, table)
file_name := os.filename(file)
file_name := os.file_name(file)
vfmt_output_path := os.join_path(os.temp_dir(), 'vfmt_' + file_name)
os.write_file(vfmt_output_path, formatted_content )
if foptions.is_verbose {