| 80 | } |
| 81 | |
| 82 | static void RemoveFile(cHierDatabase::iterator& iter, const TSTRING& filename) |
| 83 | { |
| 84 | TCOUT << "Removing object " << filename << std::endl; |
| 85 | if (iter.SeekTo(filename.c_str())) |
| 86 | { |
| 87 | if (iter.CanDescend()) |
| 88 | { |
| 89 | TCOUT << "Can't delete object; it still has children." << std::endl; |
| 90 | } |
| 91 | else |
| 92 | { |
| 93 | iter.RemoveData(); |
| 94 | iter.DeleteEntry(); |
| 95 | } |
| 96 | } |
| 97 | else |
| 98 | { |
| 99 | TCOUT << "Unable to find object " << filename << std::endl; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | static void ChDir(cHierDatabase::iterator& iter, const TSTRING& filename) |
| 104 | { |