os: vfmt os.v
parent
45cc3ec664
commit
c21f57ff59
|
@ -396,7 +396,7 @@ pub fn is_file(path string) bool {
|
|||
// is_abs_path returns `true` if `path` is absolute.
|
||||
pub fn is_abs_path(path string) bool {
|
||||
$if windows {
|
||||
return path[0] == `/` || // incase we're in MingGW bash
|
||||
return path[0] == `/` || // incase we're in MingGW bash
|
||||
(path[0].is_letter() && path[1] == `:`)
|
||||
}
|
||||
return path[0] == `/`
|
||||
|
|
Loading…
Reference in New Issue