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

CI: ubuntu-musl target

This commit is contained in:
Alexander Medvednikov
2019-11-15 00:46:40 +03:00
parent 9499275180
commit a04c3bac83
4 changed files with 26 additions and 2 deletions

View File

@@ -47,6 +47,11 @@ pub fn ls(path string) ?[]string {
}
pub fn dir_exists(path string) bool {
/*
$if linux {
C.syscall(4, path.str) // sys_newstat
}
*/
dir := C.opendir(path.str)
res := !isnil(dir)
if res {