(path string)
| 106 | } |
| 107 | |
| 108 | func (self *Shell) DeleteFile(path string) *Shell { |
| 109 | fullPath := filepath.Join(self.dir, path) |
| 110 | err := os.RemoveAll(fullPath) |
| 111 | if err != nil { |
| 112 | self.fail(fmt.Sprintf("error deleting file: %s\n%s", fullPath, err)) |
| 113 | } |
| 114 | |
| 115 | return self |
| 116 | } |
| 117 | |
| 118 | func (self *Shell) CreateDir(path string) *Shell { |
| 119 | fullPath := filepath.Join(self.dir, path) |
no test coverage detected