Use iterdir instead of glob
This commit is contained in:
parent
0a1dd9ecec
commit
dc79d5cf6c
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user