newSymlinkNode returns a new node struct corresponding to a symlink.
()
| 311 | |
| 312 | // newSymlinkNode returns a new node struct corresponding to a symlink. |
| 313 | func (cfs CFS) newSymlinkNode() *Node { |
| 314 | return &Node{ |
| 315 | cfs: cfs, |
| 316 | ID: cfs.newUniqueID(), |
| 317 | // Symlinks don't have permissions, allow all. |
| 318 | Mode: os.ModeSymlink | allPerms, |
| 319 | } |
| 320 | } |