1. Technical Field
The present disclosure relates to methods for protecting files, and particularly to a method protecting files of a digital photo frame from careless deletion.
2. Description of the Related Art
A typical digital photo frame uses a storage card to store documents and digital image files. Since the storage card has limited space, files stored in the storage card may be deleted to store new files. Therefore, the files of the storage card may be carelessly deleted before backup.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments.
The digital photo frame 10 includes a network module 12, a storage module 14, and an applying module 16. The network module 12 may be a network card, or other electronic devices capable of connecting the digital photo frame 10 to the network. The storage module 14 may be a storage card, and is capable of storing files. The applying module 16 is capable of automatically detecting whether there are files stored in the storage module 14 and the folder of the storage system 30, before copying the files of the storage module 14 to the storage system 30, determining whether the files of the storage system 30 are the same as the files in the folder of the storage module 14 when the files of the storage module 14 and the storage system 30 are identified, and copying files from the storage module 14 to the folder of the storage system 30 when the files of the storage module 14 are different from the files of the storage system 30. Furthermore, in determining whether the files of the storage system 30 are the same as the files in the folder of the storage module 14, the applying module 16 detects and checks the titles, types, and sizes of the files in the storage module 14 to determine whether the same files exist in the storage system 30 (as shown in
Referring also to
The applying module 16 detects whether there are files in the storage module 14 of the digital photo frame 10. If no files are detected, the applying module 16 does not copy any file to the storage system 30. If files are detected, the applying module 16 detects whether there are files stored in the folder of the storage system 30. If no files are stored in the folder of the storage system 30, the applying module 16 copies the files of the storage module 14 to the folder of the storage system 30. If there are files stored in the folder of the storage system 30, the applying module 16 determines whether the titles of the files in the storage module 14 are the same as the files in the storage system 30. If the titles of the files are not the same as the files in the storage system 30, the applying module 16 copies the files of the storage module 14 to the folder of the storage system 30. If the titles of the files are the same as the files in the storage system 30, the applying module 16 determines whether the types of the files in the storage module 14 are the same as the files in the storage system 30. If the types of the files are not the same as the files in the storage system 30, the applying module 16 copies the files in the storage module 14 to the folder of the storage system 30. If the types of the files are the same as the files in the storage system 30, the applying module 16 determines whether the sizes of the files in the storage module 14 are the same as the files in the storage system 30. If the files in the storage module 14 and the storage system 30 are not the same size, the applying module 16 copies the files in the storage module 14 to the folder of the storage system 30. If the files in the storage module 14 and the storage system 30 are the same size, the applying module 16 does not copy any file from the storage module 14 to the storage system 30.
In the embodiment, the files of the storage module 14 of the digital photo frame and the folder of the storage system 30 may be digital image files, audio files, or video files.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the present disclosure, together with details of the structures and functions of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200810302413.X | Jun 2008 | CN | national |