mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
all: more chdir/chmod fixes
This commit is contained in:
parent
2b92ccecb5
commit
cf4081e2dd
12 changed files with 14 additions and 14 deletions
|
@ -886,7 +886,7 @@ pub fn flush() {
|
|||
|
||||
// chmod change file access attributes of `path` to `mode`.
|
||||
// Octals like `0o600` can be used.
|
||||
pub fn chmod(path string, mode int)? {
|
||||
pub fn chmod(path string, mode int) ? {
|
||||
if C.chmod(&char(path.str), mode) != 0 {
|
||||
return error_with_code('chmod failed: ' + posix_get_error_msg(C.errno), C.errno)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue