os api: basedir => base_dir

This commit is contained in:
yuyi 2020-03-08 22:43:56 +08:00 committed by GitHub
parent 2bed0d1bb5
commit 23b11c84b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View file

@ -69,7 +69,7 @@ pub fn (l mut Log) set_output_level(level LogLevel) {
pub fn (l mut Log) set_full_logpath(full_log_path string) {
rlog_file := os.realpath( full_log_path )
l.set_output_label( os.filename( rlog_file ) )
l.set_output_path( os.basedir( rlog_file ) )
l.set_output_path( os.base_dir( rlog_file ) )
}
pub fn (l mut Log) set_output_label(label string){