Summary of the invention
The technical problem that present invention mainly solves is to provide a kind of electronic equipment and method thereof preventing from repeating copied files, to solve the problems referred to above.
For solving above-mentioned technical problem, the technical scheme that the present invention adopts is: providing a kind of method preventing and repeating copied files, it is applied to the file copy between the first electronic equipment and the second electronic equipment, comprising:
When the first electronic equipment is by file copy to the second electronic equipment, the first electronic equipment obtains the device identification of the second electronic equipment from the second electronic equipment;
First electronic equipment obtains the attribute of file, and the attribute of its file includes the copied device identification of file;
The device identification of the second electronic equipment and copied device identification are compared by the first electronic equipment;
If copied device identification includes the device identification of the second electronic equipment, then the first electronic device prompts user file is copied.
Wherein, the attribute of file includes the list for storing copied device identification;
The device identification of the second electronic equipment and copied device identification are compared and include by the first electronic equipment:
The device identification of the second electronic equipment is mated by the first electronic equipment with list;
Copied device identification includes the device identification of the second electronic equipment and includes:
The device identification of the second electronic equipment and list match success.
Wherein, method farther includes:
If the device identification of the second electronic equipment is unsuccessful with list match, then the attribute of the first electronic equipment amendment file, preserves the device identification of the second electronic equipment to list, and by file copy to the second electronic equipment.
Wherein, the attribute of file farther includes the path of file.
Wherein, after the step that the first electronic device prompts user file has been copied, method farther includes:
First electronic equipment display continues copy or turns the path jumping copied files;
If the first electronic equipment receives the instruction continuing copy, then file is continued to copy the second electronic equipment to by the first electronic equipment;
If the first electronic equipment receives turns the path jumping copied files, then the first electronic equipment turns the path jumping copied files, to skip copied file.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide a kind of electronic equipment preventing from repeating copied files, it at least includes the first electronic equipment and the second electronic equipment, first electronic equipment is by file copy to the second electronic equipment, first electronic equipment includes communication module, file attribute memory module, file attribute read module and message display module, file attribute read module respectively with communication module, file attribute memory module and message display module connect, wherein: file attribute read module obtains the device identification of the second electronic equipment by communication module, and the attribute of file is obtained from file attribute memory module, the attribute of file includes the copied device identification of file;The device identification of the second electronic equipment and copied device identification are compared by file attribute read module;If copied device identification includes the device identification of the second electronic equipment, then message display module prompting user file is copied.
Wherein, the attribute of file includes the list for storing copied device identification, and the device identification of the second electronic equipment is mated by file attribute read module with list;If the device identification of the second electronic equipment and list match success, then message display module prompting user file is copied.
Wherein, first electronic equipment farther includes file copy operation module and file attribute modified module, file copy operation module is connected with file attribute read module, file attribute modified module is connected with file attribute read module and file attribute memory module respectively, if the device identification of the second electronic equipment is unsuccessful with list match, the attribute of file attribute modified module amendment file, the device identification of the second electronic equipment is preserved the list to file attribute memory module, and file copy operation module is by file copy to the second electronic equipment.
Wherein, the attribute of file farther includes the path of file.
Wherein, the first electronic equipment farther includes portfolio operations module, and portfolio operations module operates module with message display module and file copy respectively and is connected, and message display module shows continuation copy further or turns the path jumping copied files;If file attribute read module receives the instruction continuing copy, then file is continued to copy the second electronic equipment to by file copy operation module;If message display module receives turns the path jumping copied files, then portfolio operations module turns the path jumping copied files, to skip copied file.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention is when the first electronic equipment is by file copy to the second electronic equipment, and the first electronic equipment obtains the device identification of the second electronic equipment from the second electronic equipment;First electronic equipment obtains the attribute of file, and the attribute of its file includes the copied device identification of file;The device identification of the second electronic equipment and copied device identification are compared by the first electronic equipment;If copied device identification includes the device identification of the second electronic equipment, then the first electronic device prompts user file is copied;It can be avoided that repetition copied files, improve the experience effect of user.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making performing creative labour premise, broadly fall into the scope of protection of the invention.
Shown in Figure 1, Fig. 1 is the flow chart preventing from repeating the method for copied files of first embodiment of the invention.What the present embodiment was disclosed prevents the method repeating copied files to be applied to the file copy between the first electronic equipment and the second electronic equipment, and the first electronic equipment and the second electronic equipment are preferably smart mobile phone, digital camera or computer etc..
As in figure 2 it is shown, the first electronic equipment 21 and the second electronic equipment 22 are set up and connected, connected mode includes the modes such as serial ports connection, USB connection or wireless connections.What the present embodiment was disclosed prevent repeats the method for copied files and copies files to the second electronic equipment 22 based on the first electronic equipment 21.
As it is shown in figure 1, the disclosed method of the present embodiment comprises the following steps:
Step S11: when the first electronic equipment 21 is by file copy to the second electronic equipment 22, the first electronic equipment 21 obtains the device identification of the second electronic equipment 22 from the second electronic equipment 22;
Wherein, the first electronic equipment 21 and the second electronic equipment 22 are provided with unique device identification when dispatching from the factory, and the device identification of the first electronic equipment 21 is different from the device identification of the second electronic equipment 22.
When the first electronic equipment 21 and the second electronic equipment 22 are set up and connected, the first electronic equipment 21 and the second electronic equipment 22 switchgear identify, and the first electronic equipment 21 preserves the device identification of the second electronic equipment 22 further.When the first electronic equipment 21 is by file copy to the second electronic equipment 22, the first electronic equipment 21 reads the device identification of the second electronic equipment 22.
Step S12: the first electronic equipment 21 obtains the attribute of file, and the attribute of its file includes the copied device identification of file;
Wherein, the attribute of file generally includes file name, type, establishment time and file size etc., the attribute of file farther includes the copied device identification of file, and the device identification of other electronic equipments is saved in the attribute of file accordingly by the first electronic equipment 21 every time by file copy to other electronic equipments time.As illustrated in chart 1, the first electronic equipment 21 stores the attribute of file.
The attribute of table 1 file
Title |
Photograph 1 |
Type |
PNG |
The establishment time |
2016-03-01 |
File size |
2.5M |
Copied device identification |
002 |
As shown in table 1,002 represents that file photograph 1 has been copied to the electronic equipment that device identification is 002 by the first electronic equipment 21.
The device identification of the second electronic equipment 22 and copied device identification are compared by the step S13: the first electronic equipment 21.
Step S14: if copied device identification includes the device identification of the second electronic equipment 22, then the first electronic equipment 21 points out user file to be copied.
Wherein, the attribute of file includes the device identification of the second electronic equipment 22, for instance the device identification of the second electronic equipment 22 is 002, according to table 1 it can be seen that the attribute of file includes the device identification 002 of the second electronic equipment 22.Now the first electronic equipment 21 points out user's this document to be copied into the second electronic equipment 22, it can be avoided that the first electronic equipment 21 repeats copy this document to the second electronic equipment 22, avoid causing the waste of the second electronic equipment 22 internal memory, and then improve the experience effect of user.
Step S15: if copied device identification does not include the device identification of the second electronic equipment 22, then the attribute of file revised by the first electronic equipment 21, the device identification of the second electronic equipment 22 is preserved to copied device identification, and by file copy to the second electronic equipment 22.
Wherein, the attribute of file does not include the device identification of the second electronic equipment 22, the such as device identification of the second electronic equipment 22 is 003, according to table 1, the attribute of file does not include the device identification 003 of the second electronic equipment 22, now the attribute of this document revised by the first electronic equipment 21, and the device identification 003 of the second electronic equipment 22 is preserved to table 1 copied device identification, and namely copied device identification includes 002 and 003;Then this document is copied to the second electronic equipment 22 by the first electronic equipment 21.
Shown in Figure 3, Fig. 3 is the flow chart preventing from repeating the method for copied files of second embodiment of the invention.As it is shown on figure 3, the disclosed method of the present embodiment comprises the following steps:
Step S11-S15 disclosed with first embodiment of the invention for step S31-S35 is identical, does not repeat them here;
Step S36: the first electronic equipment 21 display continues copy or turns the path jumping copied files;
Step S37: if the first electronic equipment 21 receives the instruction continuing copy, then file is continued to copy the second electronic equipment 22 to by the first electronic equipment 21;
Step S38: if the first electronic equipment 21 receives turns the path jumping copied files, then the path of copied files jumped by the first electronic equipment 21 turns, to skip copied file.
In step s 32, the attribute of file farther includes the list for storing copied device identification.
In step S33, the device identification of the second electronic equipment 22 is mated by the first electronic equipment 21 with list.
In step S34, if the device identification of the second electronic equipment 22 and list match success, then the first electronic equipment 21 points out user file to be copied.
In step s 35, if the device identification of the second electronic equipment 22 is unsuccessful with list match, then the attribute of file revised by the first electronic equipment 21, preserves the device identification of the second electronic equipment 22 to list, and by file copy to the second electronic equipment 22.
In step S36, the attribute of file farther includes the path of file, and the path of file is the path that file is copied into, for instance the path of the attribute file of file is the first path of the second electronic equipment 22.
If the device identification of the second electronic equipment 22 and list match success, then the first electronic equipment 21 points out user file to be copied, and show the first path that path is the second electronic equipment 22 of copy file last time, so that user selects continue copy or turn the path jumping copied files.
In step S37, if user selects to continue copy, namely the first electronic equipment 21 receives the instruction continuing copy, then file is continued to copy the second electronic equipment 22 to by the first electronic equipment 21, and revising the attribute of file, the path to copy files to the second electronic equipment 22 is saved in the path of file.
In step S38, if user have selected turns the path jumping copied files, namely the first electronic equipment 21 receives and turns the path jumping copied files, then the path of copied files jumped by the first electronic equipment 21 turns, to skip copied file.
If user selects to turn the path jumping to copied files, namely the first electronic equipment 21 receives and turns the path jumping to copied files, then the first electronic equipment 21 turns jumps to the path of copied files.
Shown in Figure 4, Fig. 4 is the structural representation preventing from repeating the electronic equipment of copied files of first embodiment of the invention.The disclosed electronic equipment of this enforcement based on first embodiment prevent repeat the basis of the method for copied files is described, as shown in Figure 4, the disclosed electronic equipment 40 of the present embodiment at least includes the first electronic equipment 21 and the second electronic equipment 22.
Wherein, first electronic equipment 21 includes communication module 23, file attribute memory module 24, file attribute read module 25 and message display module 26, file attribute read module 25 is connected with communication module 23, file attribute memory module 24 and message display module 26 respectively, wherein: file attribute read module 25 obtains the device identification of the second electronic equipment 22 by communication module 23, and the attribute of file is obtained from file attribute memory module 24, the attribute of file includes the copied device identification of file;The device identification of the second electronic equipment 22 and copied device identification are compared by file attribute read module 25;If copied device identification includes the device identification of the second electronic equipment 22, then message display module 26 points out user file to be copied.
The present embodiment is it can be avoided that the first electronic equipment 21 repeats copy this document to the second electronic equipment 22, it is to avoid causes the waste of the second electronic equipment 22 internal memory, and then improves the experience effect of user.
The present invention farther includes the electronic equipment preventing from repeating copied files of the second embodiment, it is described based on the basis of the method preventing repetition copied files of the second embodiment, as shown in Figure 5, disclosed the first electronic equipment 21 of the present embodiment farther includes file copy operation module 27, file attribute modified module 28 and portfolio operations module 29, wherein, file copy operation module 27 is connected with file attribute read module 25, file attribute modified module 28 is connected with file attribute read module 25 and file attribute memory module 24 respectively, portfolio operations module 29 operates module 27 with message display module 26 and file copy respectively and is connected.
The attribute of file includes the list for storing copied device identification, and the device identification of the second electronic equipment 22 is mated by file attribute read module 25 with list;If the device identification of the second electronic equipment 22 and list match success, then message display module 26 points out user file to be copied.
If the device identification of the second electronic equipment 22 is unsuccessful with list match, file attribute modified module 28 revises the attribute of file, the device identification of the second electronic equipment 22 is preserved the list to file attribute memory module 24, and file copy operation module 27 is by file copy to the second electronic equipment 22.
The attribute of file farther includes the path of file.If file attribute read module 25 receives the instruction continuing copy, then file is continued to copy the second electronic equipment 22 to by file copy operation module 27;If message display module 26 receives turns the path jumping copied files, then portfolio operations module 29 turns jumps the path of copied files, to skip copied file.
Fig. 6 is the structural representation preventing from repeating the electronic equipment of copied files of third embodiment of the invention, and the device of present embodiment can perform the step in said method, and related content refers to the detailed description in said method, no longer goes to live in the household of one's in-laws on getting married at this and chats.
This electronic equipment includes: transmitter 63 that the memorizer 62 that processor 61 couples with processor 61 couples with processor 61 and receptor 64.
Memorizer 62 is for storing the attribute of file and file.
Receptor 64 is for obtaining the device identification of the second electronic equipment 22.
Processor 61 for when the first electronic equipment 21 is by file copy to the second electronic equipment 22, obtaining the attribute of file from memorizer 62, and the attribute of its file includes the copied device identification of file.
Processor 61 is additionally operable to compare the device identification of the second electronic equipment 22 and copied device identification.If processor 61 determines copied device identification includes the device identification of the second electronic equipment 22, then processor 61 points out user file to be copied;If processor 61 determines copied device identification does not include the device identification of the second electronic equipment 22, then the attribute of file revised by processor 61, preserves the device identification of the second electronic equipment 22 to copied device identification.
Memorizer 62 is additionally operable to the attribute of text after storage is revised.
Transmitter 63 is used for and by file copy to the second electronic equipment 22.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, it is possible to realize by another way.Such as, device embodiments described above is merely schematic, such as, the division of described module or unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
Part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.