docs: Describe the approach of fatfsgen.py and fatfsparse.py
This commit is contained in:
committed by
Sonika Rathi
parent
d060392584
commit
024b58604a
@@ -50,7 +50,7 @@ class Entry:
|
||||
'DIR_Name' / PaddedString(MAX_NAME_SIZE, SHORT_NAMES_ENCODING),
|
||||
'DIR_Name_ext' / PaddedString(MAX_EXT_SIZE, SHORT_NAMES_ENCODING),
|
||||
'DIR_Attr' / Int8ul,
|
||||
'DIR_NTRes' / Int8ul, # this tagged for lfn (0x00 for lfn prefix, 0x18 for short name in lfn)
|
||||
'DIR_NTRes' / Int8ul, # this tagged for lfn (0x00 for short entry in lfn, 0x18 for short name)
|
||||
'DIR_CrtTimeTenth' / Const(EMPTY_BYTE), # ignored by esp-idf fatfs library
|
||||
'DIR_CrtTime' / Int16ul, # ignored by esp-idf fatfs library
|
||||
'DIR_CrtDate' / Int16ul, # ignored by esp-idf fatfs library
|
||||
|
||||
@@ -85,8 +85,8 @@ class FATFS:
|
||||
object_timestamp_: datetime = FATFS_INCEPTION,
|
||||
is_empty: bool = False) -> None:
|
||||
"""
|
||||
Root directory recursively finds the parent directory of the new file, allocates cluster,
|
||||
entry and appends a new file into the parent directory.
|
||||
This method allocates necessary clusters and creates a new file record in the directory required.
|
||||
The directory must exists.
|
||||
|
||||
When path_from_root is None the dir is root.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user