From dc79d5cf6c695ff1eeb923c11e95243f05ab16fd Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Sat, 7 Sep 2019 01:10:16 +0300 Subject: [PATCH] Use iterdir instead of glob --- cloud-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-build.py b/cloud-build.py index ab6a26d..4279be0 100755 --- a/cloud-build.py +++ b/cloud-build.py @@ -438,7 +438,7 @@ Dir::Etc::preferencesparts "/var/empty"; def clear_imager_dir(self): for branch in self.branches: directory = self.images_dir / branch - for path in directory.glob('*'): + for path in directory.iterdir(): os.unlink(path) def remove_old_tarballs(self):