| 39 | }; |
| 40 | |
| 41 | TTestDirectory::TTestDirectory(const TString& name) { |
| 42 | Y_ABORT_UNLESS(name.length() > 0, "have to specify name"); |
| 43 | Y_ABORT_UNLESS(name.find('.') == TString::npos, "must be simple name"); |
| 44 | Y_ABORT_UNLESS(name.find('/') == TString::npos, "must be simple name"); |
| 45 | Y_ABORT_UNLESS(name.find('\\') == TString::npos, "must be simple name"); |
| 46 | Path_ = TFsPath(name); |
| 47 | |
| 48 | Path_.ForceDelete(); |
| 49 | Path_.MkDir(); |
| 50 | } |
| 51 | |
| 52 | TTestDirectory::~TTestDirectory() { |
| 53 | Path_.ForceDelete(); |