Patent ID: 8150809
Filing Date: 2012-04-03
Classification: G06F

Abstract:
1. A file delete method used by a computer performing a process of outputting to a device driver side a directive corresponding to a directive to delete a file satisfying a predetermined condition from an application, the file delete method comprising: a directory entry obtaining step of obtaining in primary storage from an actual data area in secondary storage one cluster of directory entry information in a directory storing a file to be deleted, the secondary storage being a flash memory on which data is read and written in units of cluster; a delete mark adding step of determining whether the file in the obtained directory entry satisfies the predetermined condition specified from the application, not adding a delete mark to the file in the obtained directory entry when the file in the obtained directory entry does not satisfy the predetermined condition, not adding a delete mark to the file in the obtained directory entry in a case where the file in the obtained directory entry has a file attribute of read only or write protect even when the file in the obtained directory entry satisfies the predetermined condition, and adding in the primary storage a delete mark to the file in the obtained directory entry when the file in the obtained directory entry satisfies the predetermined condition and does not have a file attribute of read only nor write protect; a freeing step of freeing FAT information stored in a FAT in the secondary storage corresponding to the file to which the delete mark is added; and a directory entry writing step of writing contents of the directory entry in the primary storage to a corresponding portion in the actual data area in the secondary storage when the delete mark adding step is performed on all files in the obtained directory entry; and a step of deleting as a target a file in the secondary storage according to a file allocation tables (FAT) file system; wherein the directory entry information includes file name and the delete mark is data added to the file name.