bulk bmp import/export

This commit is contained in:
Klemek
2021-08-27 11:20:01 +02:00
parent 3c58b5c0c2
commit 9fdb029b06
2 changed files with 33 additions and 3 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Optional
import re
import os.path
@@ -25,6 +25,12 @@ class File:
def modified(self) -> bool:
return any(image.modified for image in self.images)
def search(self, name) -> Optional[Image]:
for image in self.images:
if image.name == name:
return image
return None
def __read_file(self) -> List[Image]:
images = []