Skip to content

Commit

Permalink
(archives)(#197) base.Archive can optionally track filename & folder
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Nov 19, 2024
1 parent 5be6ede commit 0151f05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bsp_tool/archives/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ def path_tuple(path: str) -> Tuple[str]:
class Archive:
ext = None
extras: Dict[str, external.File]
folder: str
filename: str

def __init__(self):
def __init__(self, filepath: str = "untitled.ext"):
self.extras = dict()
self.folder, self.filename = os.path.split(filepath)

def extra_patterns(self) -> List[str]:
"""filename patterns for files to mount (e.g. '*.bin')"""
Expand Down

0 comments on commit 0151f05

Please sign in to comment.