fatfsparse.py: add cluster chaining support to enable reading longer-than-sector files

Closes IDF-4975
This commit is contained in:
Martin Gano
2022-04-04 15:33:00 +02:00
committed by Martin Gaňo
parent 64b6733349
commit 8ef66536ed
18 changed files with 368 additions and 62 deletions

View File

@@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
class WriteDirectoryException(Exception):
"""
Exception is raised when the user tries to write the content into the directory instead of file
"""
pass
class NoFreeClusterException(Exception):
"""
Exception is raised when the user tries allocate cluster but no free one is available
"""
pass
class LowerCaseException(Exception):
"""
Exception is raised when the user tries to write file or directory with lower case
"""
pass
class TooLongNameException(Exception):
"""
Exception is raised when long name support is not enabled and user tries to write file longer then allowed
"""
pass
class NotInitialized(Exception):
"""
Exception is raised when the user tries to access not initialized property
"""
pass
class WLNotInitialized(Exception):
"""
Exception is raised when the user tries to write fatfs not initialized with wear levelling
"""
pass
class FatalError(Exception):
pass
class InconsistentFATAttributes(Exception):
pass