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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user