AppendFile appends the contents of the pipe to the file path, creating it if necessary, and returns the number of bytes successfully written, or an error.
(path string)
| 202 | // necessary, and returns the number of bytes successfully written, or an |
| 203 | // error. |
| 204 | func (p *Pipe) AppendFile(path string) (int64, error) { |
| 205 | return p.writeOrAppendFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY) |
| 206 | } |
| 207 | |
| 208 | // Basename reads paths from the pipe, one per line, and removes any leading |
| 209 | // directory components from each. So, for example, /usr/local/bin/foo would |