摘要 |
<p>A method, a device for storing file and a method, a device for deleting file are provided. The method includes the following steps: directory data and the application file data in the directory are stored in data block; the data block pointers pointing to the data block are stored; directory index node information of the directory is stored and file index node information of the application file is stored; the location information of the application file and the data block pointer are stored and the location information of the application file and the file index node information are stored. When the directory is deleted, disk resources occupied by the files can be founded without traversing all the files in the directory, and the directory and the files can be deleted. Consequently, the occupied system resources are efficiently reduced when the whole directory is deleted.</p> |