- Hands-On System Programming with Go
- Alex Guerrieri
- 62字
- 2021-06-24 13:42:29
Changing properties
In order to interact with the filesystem and change these properties, three functions are available:
- func Chmod(name string, mode FileMode) error: Changes the permissions of a file
- func Chown(name string, uid, gid int) error: Changes the owner and group of a file
- func Chtimes(name string, atime time.Time, mtime time.Time) error: Changes the access and modification time of a file