sys

sys.sys.lchown_r

Declaration
lua
sys.lchown_r(path, uid, gid)
Description
Recursively change ownership of path and all children using lchown() (does not follow symlinks).
Parameters
NameTypeRequiredDefaultDescription
pathstringRequired—Root path
uidintegerRequired—User ID
gidintegerRequired—Group ID
Return Values
No return value
Example
lua
sys.lchown_r("/var/mobile/Library/VNTouch", 501, 501)