mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
Merge branch 'docs/descrive-approach-fatfstools' into 'master'
docs: Describe the approach of fatfsgen.py and fatfsparse.py Closes IDF-4755 See merge request espressif/esp-idf!19978
This commit is contained in:
@@ -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