(dst string, mode fs.FileMode)
| 136 | } |
| 137 | |
| 138 | func (f FileOp) CreateFileWithMode(dst string, mode fs.FileMode) error { |
| 139 | file, err := f.Fs.OpenFile(dst, os.O_CREATE, mode) |
| 140 | if err != nil { |
| 141 | return err |
| 142 | } |
| 143 | return file.Close() |
| 144 | } |
| 145 | |
| 146 | func (f FileOp) LinkFile(source string, dst string, isSymlink bool) error { |
| 147 | if isSymlink { |