Delete deletes the file.
()
| 80 | |
| 81 | // Delete deletes the file. |
| 82 | func (f File) Delete() error { |
| 83 | if f == "" { |
| 84 | return xerrors.Errorf("empty file path") |
| 85 | } |
| 86 | return os.Remove(string(f)) |
| 87 | } |
| 88 | |
| 89 | // Write writes the string to the file. |
| 90 | func (f File) Write(s string) error { |