Closed juancarlospaco closed 3 years ago
Me agrada tu idea. :+1:
What do you think about this @timotheecour ?, should it use array[9, char]
instead ?, something else?.
/cc @xflywind @juancarlospaco let's discuss alternatives see https://github.com/nim-lang/fusion/pull/50#discussion_r550382167
I think
proc chmod*(path: string; update: string) {.inline.} =
let old = getFilePermissions(path)
let perm = updateFilePermissions(old, update)
setFilePermissions(path, perm)
is good but I'm not sure about the right format to use for update
:
"ugo=-x"
etc)
openArray[char]
overloads forfilepermissions.chmod
andfilepermissions.toFilePermissions
.(I tried to use a
for
loop and gives same metrics as theif
's so I went with the simpler code)