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

os: fix deprecated os.dir to work as advertised

This commit is contained in:
Nicolas Sauzede 2019-12-28 08:49:27 +01:00 committed by Alexander Medvednikov
parent a214778b74
commit 4925aa594b

View File

@ -616,7 +616,7 @@ pub fn ext(path string) string {
[deprecated]
pub fn dir(path string) string {
println('Use filepath.dir')
return filepath.ext(path)
return filepath.dir(path)
}
[deprecated]