1. Technical Field
The disclosure relates to mobile phones and, more particularly, to a storage card partition system and a storage card partition method adapted for a mobile phone.
2. Description of Related Art
When a SD card is inserted into a mobile phone, the mobile phone generates a directory which includes folders. A lot of files may be stored in the folder. However, all files are not classified, which results in disorder.
Therefore, what is needed is a storage card partition system to overcome the described shortcoming
As shown in
The detecting module 21 detects whether or not a storage card 2 is inserted into the mobile phone 1. For example, the detecting module 21 detects whether or not the storage card interface 14 is connected to the storage card 2. When the storage card 2 is inserted into the mobile phone 1, the capacity acquiring module 22 acquires a storage capacity of the storage card 2. In another embodiment, the mobile phone 1 defines a partition mode, the storage card 2 is located in the mobile phone 1, and the mobile phone 1 enters the partition mode in response to user input to actuate the capacity acquiring module 22 to acquire the storage capacity of the storage card 2.
The dividing module 23 defines a quantity of partitions and divides the storage card 2 into the quantity of partitions according to the storage capacity of the storage card 2. In the embodiment, the memory 13 stores a preset formula C=2n to obtain the quantity, wherein C represents the storage capacity of the storage card 2 and n represents the quantity of partitions. For example, the storage capacity of the storage card 2 is 16 G and the quantity of partitions is four according to the preset rule, that is, the dividing module 23 divides the storage card 2 into four partitions. In another embodiment, the dividing module 23 defines the quantity of partitions on a user interface in response to user input.
The dividing module 23 further defines a capacity of each partition. For example, if the storage card 2 is divided into three partitions and includes a capacity of 8 G, a first partition includes a capacity of 4/3 G, a second partition includes a capacity of 8/3 G, and a third partition includes a capacity of 4 G. In the embodiment, the dividing module 23 defines the capacity of each partition in response to user input.
The naming module 24 names each partition to obtain a partition name. For example, the storage card 2 is divided into four partitions, a first partition is named as a system area, a second partition is named as a multimedia area, a third partition is named as a game area, and a fourth partition is named as a user area. The naming module 24 further defines a relationship between each partition name and at least one suffix name. The suffix name is from a file. For example, the naming module 24 defines a first relationship between the system area and a suffix name “dat” and a second relationship between the user area and suffix names “doc” and “ppt”. In the embodiment, the naming module 24 further defines the relationship between each partition name and at least one suffix name in response to user input.
When a file is stored in the storage card 2, the suffix name acquiring module 25 acquires a suffix name of the file. The classifying module 26 classifies the file to the corresponding partition based on the relationship, that is, saves the file, based on its suffix, to a corresponding one of the partitions related to the same suffix, which results in classification management for the files stored in the storage card 2. In another embodiment, the suffix name acquiring module 25 firstly acquires a file stored in the storage card 2, and then acquires a suffix name of the file.
For example, when a file stored in the mobile phone 1 is copied to the storage card 2, the suffix name acquiring module 25 acquires a suffix name of the file and the classifying module 26 classifies the file to a corresponding partition based on the relationship, that is, saves the file, based on its suffix, to a corresponding one of the partitions related to the same suffix.
In step 32, the dividing module 23 defines the quantity of partitions and divides the storage card 2 into the quantity of partitions according to the storage capacity of the storage card 2 and further defines a capacity of each partition. In step 33, the naming module 24 names each partition to obtain a partition name and defines a relationship between each partition name and at least one suffix name. In step 34, when a file is stored in the storage card 2, the suffix name acquiring module 25 acquires a suffix name of the file. In step 35, the classifying module 26 saves the file, based on its suffix, to a corresponding one of the partitions related to the same suffix.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013100227896 | Jan 2013 | CN | national |