
上QQ阅读APP看书,第一时间看更新
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