Patent ID: 9235534
Filing Date: 2016-01-12
CPC Classification: G06F

Claim Text:
1. A data protecting method, for protecting a sub-directory and at least one pre-stored file in the sub-directory stored into a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module comprises a plurality of physical blocks and a plurality of logical block addresses are configured to map to a portion of the physical blocks, and the logical block addresses are formatted to be a partition having a file allocation table area, a root directory area and a file area, the data protecting method comprises: receiving a write command from a host system, wherein the write command indicates a write address; determining whether the write address is an address storing a file description block of the sub-directory; determining whether a property data in data streams corresponding to the write command is the same as a corresponding content recorded in the file description block of the sub-directory when the write address is the address storing the file description block of the sub-directory; and transmitting a write failure signal to the host system when the property data in the data streams corresponding to the write command is not the same as the corresponding content recorded in the file description block of the sub-directory, wherein the property data comprises at least one of a name of the sub-directory, a read-only property of the sub-directory, a hidden property of the sub-directory, a system file property of the sub-directory and a directory property of the sub-directory.