mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add os.getpid(), use it in os.is_writable_folder on windows
This commit is contained in:
@@ -211,3 +211,8 @@ pub fn is_writable_folder(folder string) ?bool {
|
||||
os.rm(tmp_perm_check)
|
||||
return true
|
||||
}
|
||||
|
||||
[inline]
|
||||
pub fn getpid() int {
|
||||
return C.getpid()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user