fatfsgen.py: enable multiple dots in the long file name

This commit is contained in:
Martin Gaňo
2022-09-14 12:26:25 +02:00
parent 952c0f7b23
commit 53c2ea2d08
3 changed files with 13 additions and 7 deletions

View File

@@ -222,6 +222,10 @@ TIME_ENTRY = BitStruct(
)
def build_name(name: str, extension: str) -> str:
return f'{name}.{extension}' if len(extension) > 0 else name
def build_date_entry(year: int, mon: int, mday: int) -> int:
"""
:param year: denotes year starting from 1980 (0 ~ 1980, 1 ~ 1981, etc), valid values are 1980 + 0..127 inclusive