mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: replace os.base_dir with os.dir
This commit is contained in:
@@ -51,7 +51,7 @@ pub fn (mut l Log) set_output_level(level Level) {
|
||||
pub fn (mut l Log) set_full_logpath(full_log_path string) {
|
||||
rlog_file := os.real_path(full_log_path)
|
||||
l.set_output_label(os.file_name(rlog_file))
|
||||
l.set_output_path(os.base_dir(rlog_file))
|
||||
l.set_output_path(os.dir(rlog_file))
|
||||
}
|
||||
|
||||
pub fn (mut l Log) set_output_label(label string) {
|
||||
|
||||
@@ -257,7 +257,7 @@ fn get_parent_mod(dir string) ?string {
|
||||
return error('root folder reached')
|
||||
}
|
||||
}
|
||||
base_dir := os.base_dir(dir)
|
||||
base_dir := os.dir(dir)
|
||||
fname_base_dir := os.file_name(base_dir)
|
||||
prefs := new_vdoc_preferences()
|
||||
fentries := os.ls(base_dir) or {
|
||||
@@ -420,7 +420,7 @@ fn (mut d Doc) expr_typ_to_string(ex ast.Expr) string {
|
||||
|
||||
fn (mut d Doc) generate() ?Doc {
|
||||
// get all files
|
||||
base_path := if os.is_dir(d.input_path) { d.input_path } else { os.real_path(os.base_dir(d.input_path)) }
|
||||
base_path := if os.is_dir(d.input_path) { d.input_path } else { os.real_path(os.dir(d.input_path)) }
|
||||
d.is_vlib = 'vlib' !in base_path
|
||||
project_files := os.ls(base_path) or {
|
||||
return error_with_code(err, 0)
|
||||
|
||||
Reference in New Issue
Block a user