We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da0ce7 commit e46e6e8Copy full SHA for e46e6e8
base/cvd/cuttlefish/host/commands/cvd/instances/instance_manager.cpp
@@ -60,9 +60,11 @@ Result<void> RemoveGroupDirectory(const LocalInstanceGroup& group) {
60
<< per_user_dir << "), artifacts not deleted";
61
return {};
62
}
63
- CF_EXPECT(
64
- RecursivelyRemoveDirectory(CF_EXPECT(GroupDirFromHome(group.HomeDir()))),
65
- "Failed to remove group directory");
+ std::string group_directory = CF_EXPECT(GroupDirFromHome(group.HomeDir()));
+ if (DirectoryExists(group_directory)) {
+ CF_EXPECT(RecursivelyRemoveDirectory(group_directory),
66
+ "Failed to remove group directory");
67
+ }
68
69
70
0 commit comments