The lchmodsync function synchronously changes the mode of a symlink's underlying file system object. Here's an example of how to use it:
210 chars9 lines
The first argument to lchmodSync
is the path to the symlink you want to modify. The second argument is the mode to apply. In this example, 0o755
grants read, write, and execute permissions to the symlink's owner, and read and execute permissions to everyone else.
gistlibby LogSnag