(self, path)
| 262 | return [x for x in cmd if x != LF] |
| 263 | |
| 264 | def rmrf(self, path): |
| 265 | self.print_cmd(['rm', '-r', '-f', path, LF]) |
| 266 | if not self.dry_run and os.path.exists(path): |
| 267 | if os.path.isdir(path): |
| 268 | shutil.rmtree(path) |
| 269 | else: |
| 270 | os.unlink(path) |
| 271 | |
| 272 | def write_configs(self, config_path, configs, config_fragments=None, mode='a'): |
| 273 | ''' |