Summary of the invention
The invention mainly solves the technical problem of providing it is a kind of prevent repeat copied files electronic equipment and its method,
To solve the above problems.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: providing one kind prevents from repeating to copy text
The method of part, the file copy being applied 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 is obtained from the second electronic equipment
Take the device identification of the second electronic equipment;
First electronic equipment obtains the attribute of file, and wherein the attribute of file includes the copied device identification of file;
The device identification of second electronic equipment is compared by the first electronic equipment with copied device identification;
If copied device identification includes the device identification of the second electronic equipment, first electronic device prompts user's text
Part has been copied.
Wherein, the attribute of file includes the list for storing copied device identification;
The device identification of second electronic equipment is compared by the first electronic equipment with copied device identification
First electronic equipment matches the device identification of the second electronic equipment with list;
Copied device identification includes that the device identification of the second electronic equipment includes:
The device identification of second electronic equipment and list match success.
Wherein, method further comprises:
If the device identification of the second electronic equipment and list match are unsuccessful, the first electronic equipment modifies the category of file
Property, the device identification of the second electronic equipment is saved to list, and by file copy to the second electronic equipment.
Wherein, the attribute of file further comprises the path of file.
Wherein, after the step of the first electronic device prompts user file has been copied, method further comprises:
First electronic equipment shows the path continued to copy or turn to jump copied files;
If the first electronic equipment receives the instruction for continuing copy, the first electronic equipment continues file to copy second to
Electronic equipment;
If the first electronic equipment receives the path for turning to jump copied files, the first electronic equipment turns to jump copied files
Path, to skip copied file.
In order to solve the above technical problems, another technical solution used in the present invention is: providing one kind prevents from repeating to copy
The electronic equipment of file, include at least the first electronic equipment and the second electronic equipment, the first electronic equipment by file copy extremely
Second electronic equipment, the first electronic equipment include communication module, file attribute memory module, file attribute read module and disappear
Display module is ceased, file attribute read module connects with communication module, file attribute memory module and message display module respectively
It connects, in which: file attribute read module obtains the device identification of the second electronic equipment by communication module, and deposits from file attribute
The attribute that module obtains file is stored up, the attribute of file includes the copied device identification of file;File attribute read module is by
The device identification of two electronic equipments is compared with copied device identification;If copied device identification includes the second electronics
The device identification of equipment, then message display module prompt user file has been copied.
Wherein, the attribute of file includes the list for storing copied device identification, and file attribute read module will
The device identification of second electronic equipment is matched with list;If the device identification of the second electronic equipment and list match success,
Then message display module prompt user file has been copied.
Wherein, the first electronic equipment further comprises file copy operation module and file attribute modified module, and file is copied
Shellfish operation module is connect with file attribute read module, file attribute modified module respectively with file attribute read module and file
The connection of attribute memory module, if the device identification of the second electronic equipment and list match are unsuccessful, file attribute modified module is repaired
The attribute for changing file saves the device identification of the second electronic equipment to the list of file attribute memory module, file copy behaviour
Make module for file copy to the second electronic equipment.
Wherein, the attribute of file further comprises the path of file.
Wherein, the first electronic equipment further comprises portfolio operations module, and portfolio operations module is aobvious with message respectively
Show that module is connected with file copy operation module, message display module, which further displays, to be continued to copy or turn to jump copied files
Path;If file attribute read module receives the instruction for continuing copy, file is continued to copy by file copy operation module
To the second electronic equipment;If message display module receives the path for turning to jump copied files, portfolio operations module turns to jump
The path of copied files, to skip copied file.
The beneficial effects of the present invention are: being in contrast to the prior art, the present invention copies file in the first electronic equipment
When shellfish 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 wherein the attribute of file includes the copied device identification of file;First electronic equipment will
The device identification of second electronic equipment is compared with copied device identification;If copied device identification includes the second electricity
The device identification of sub- equipment, then the first electronic device prompts user file has been copied;It can be avoided repetition copied files, improve
The experience effect of user.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art are obtained every other under the premise of not making creative labor
Embodiment shall fall within the protection scope of the present invention.
Shown in Figure 1, Fig. 1 is the flow chart for preventing from repeating the method for copied files of first embodiment of the invention.
The present embodiment is revealed to prevent the method for repeating copied files to be applied between the first electronic equipment and the second electronic equipment
File copy, the first electronic equipment and the second electronic equipment are preferably smart phone, digital camera or computer etc..
As shown in Fig. 2, the first electronic equipment 21 and the second electronic equipment 22 establish connection, connection type includes that serial ports connects
Connect, USB connection or be wirelessly connected etc. modes.The present embodiment is revealed to prevent the method for repeating copied files to be based on the first electricity
Sub- equipment 21 copies files to the second electronic equipment 22.
As shown in Figure 1, the revealed method of the present embodiment the following steps are included:
Step S11: when the first electronic equipment 21 is by file copy to the second electronic equipment 22, the first electronic equipment 21 from
Second electronic equipment 22 obtains the device identification of the second electronic equipment 22;
Wherein, the first electronic equipment 21 and the second electronic equipment 22 are provided with unique device identification when leaving the factory, and first
The device identification of 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 establish connection, the first electronic equipment 21 and the second electronics are set
Standby 22 switchgears identify, and the first electronic equipment 21 further saves the device identification of the second electronic equipment 22.In the first electronics
When equipment 21 is by file copy to the second electronic equipment 22, the first electronic equipment 21 reads the equipment mark of the second electronic equipment 22
Know.
The S12: the first electronic equipment of step 21 obtains the attribute of file, and wherein to include that file is copied set the attribute of file
Standby mark;
Wherein, the attribute of file generally includes file name, type, creation time and file size etc., the category of file
Property further comprises the copied device identification of file, and the first electronic equipment 21 is every time by file copy to other electronic equipments
The device identification of other electronic equipments is stored in the attribute of file by Shi Xiangying.As illustrated in chart 1, the first electronic equipment 21 is deposited
Store up the attribute of file.
The attribute of 1 file of table
| Title |
Photograph 1 |
| Type |
PNG |
| Creation time |
2016-03-01 |
| File size |
2.5M |
| Copied device identification |
002 |
As shown in table 1, file photograph 1 is copied to the electricity that device identification is 002 by 002 the first electronic equipment 21 of expression
Sub- equipment.
The S13: the first electronic equipment of step 21 by the device identification of the second electronic equipment 22 and copied device identification into
Row compares.
Step S14: if copied device identification includes the device identification of the second electronic equipment 22, the first electronic equipment
21 prompt user files have been copied.
It wherein, include the device identification of the second electronic equipment 22 in the attribute of file, such as second electronic equipment 22 is set
It is standby to be identified as 002, it according to table 1, in the attribute of file include the device identification 002 of the second electronic equipment 22.At this time first
Electronic equipment 21 prompts user's this document to be copied into the second electronic equipment 22, can be avoided the repetition of the first electronic equipment 21
It copies this document and avoids the waste of 22 memory of the second electronic equipment to the second electronic equipment 22, and then improve the body of user
Test effect.
Step S15: if copied device identification does not include the device identification of the second electronic equipment 22, the first electronics is set
The attribute of standby 21 modification files, the device identification of the second electronic equipment 22 is saved to copied device identification, and by file
It is copied to the second electronic equipment 22.
It wherein, does not include the device identification of the second electronic equipment 22 in the attribute of file, such as the second electronic equipment 22
Device identification is 003, according to table 1, in the attribute of file does not include the device identification 003 of the second electronic equipment 22, at this time
First electronic equipment 21 modifies the attribute of this document, and the device identification 003 of the second electronic equipment 22 is saved into table 1 and has been copied
Device identification, i.e., copied device identification include 002 and 003;Then this document is copied to by the first electronic equipment 21
Two electronic equipments 22.
Shown in Figure 3, Fig. 3 is the flow chart for preventing from repeating the method for copied files of second embodiment of the invention.
As shown in figure 3, the revealed method of the present embodiment the following steps are included:
Step S31-S35 is identical as the revealed step S11-S15 of first embodiment of the invention, and details are not described herein;
The S36: the first electronic equipment of step 21 shows the path continued to copy or turn to jump copied files;
Step S37: if the first electronic equipment 21 receive continue copy instruction, the first electronic equipment 21 by file after
It is continuous to copy the second electronic equipment 22 to;
Step S38: if the first electronic equipment 21 receives the path for turning to jump copied files, the first 21 turns of electronic equipment
The path of copied files is jumped, to skip copied file.
In step s 32, the attribute of file further comprises the list for storing copied device identification.
In step S33, the first electronic equipment 21 matches the device identification of the second electronic equipment 22 with list.
In step S34, if the device identification of the second electronic equipment 22 and list match success, the first electronic equipment 21
Prompt user file has been copied.
In step s 35, if the device identification of the second electronic equipment 22 and list match are unsuccessful, the first electronic equipment
The attribute of 21 modification files, the device identification of the second electronic equipment 22 is saved to list, and by file copy to the second electronics
Equipment 22.
In step S36, the attribute of file further comprises the path of file, and the path of file is what file was copied into
The path of file is the first path of the second electronic equipment 22 in path, such as the attribute of file.
If the device identification of the second electronic equipment 22 and list match success, the first electronic equipment 21 prompt user file
It has been be copied that, and show that the path of file last time copy is the first path of the second electronic equipment 22, so that user selects to continue
Copy or the path for turning to jump copied files.
In step S37, if user's selection continues to copy, i.e. the first electronic equipment 21 receives the instruction for continuing copy,
Then the first electronic equipment 21 continues file to copy the second electronic equipment 22 to, and modifies the attribute of file, and file is copied
The path of shellfish to the second electronic equipment 22 is stored in the path of file.
In step S38, if user has selected turn path for jumping copied files, i.e. the first electronic equipment 21, which receives, to be turned
The path of copied files is jumped, then 21 turns of the first electronic equipment paths for jumping copied files, to skip copied file.
If user's selection turns to jump to the path of copied files, i.e. the first electronic equipment 21, which receives, to be turned to jump to have copied text
The path of part, then 21 turns of the first electronic equipment jumps to the path of copied files.
Shown in Figure 4, Fig. 4 is the structure for preventing from repeating the electronic equipment of copied files of first embodiment of the invention
Schematic diagram.This implement revealed electronic equipment based on first embodiment prevent repeat copied files method on the basis of into
Row description, as shown in figure 4, the revealed electronic equipment 40 of the present embodiment includes at least the first electronic equipment 21 and the second electronics is set
Standby 22.
Wherein, the 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 respectively with communication module 23, file attribute memory module 24 with
And message display module 26 connects, in which: file attribute read module 25 obtains the second electronic equipment 22 by communication module 23
Device identification, and from file attribute memory module 24 obtain file attribute, the attribute of file, which includes that file is copied, to be set
Standby mark;File attribute read module 25 compares the device identification of the second electronic equipment 22 with copied device identification
Compared with;If copied device identification includes the device identification of the second electronic equipment 22, message display module 26 prompts user's text
Part has been copied.
The present embodiment can be avoided the first electronic equipment 21 and repeat copy this document to the second electronic equipment 22, avoid
The waste of second electronic equipment, 22 memory, and then improve the experience effect of user.
The present invention further comprises the electronic equipment for preventing from repeating copied files of second embodiment, is implemented based on second
Example prevents from being described on the basis of the method for repeating copied files, as shown in figure 5, revealed first electronics of the present embodiment
Equipment 21 further comprises file copy operation module 27, file attribute modified module 28 and portfolio operations module 29,
In, file copy operation module 27 is connect with file attribute read module 25, file attribute modified module 28 respectively with file category
Property read module 25 and file attribute memory module 24 connect, portfolio operations module 29 respectively with message display module 26 and text
Part copy function module 27 connects.
The attribute of file includes the list for storing copied device identification, and file attribute read module 25 is by second
The device identification of electronic equipment 22 is matched with list;If the device identification of the second electronic equipment 22 and list match success,
Then message display module 26 prompts user file to be copied.
If the device identification of the second electronic equipment 22 and list match are unsuccessful, file attribute modified module 28 modifies file
Attribute, the device identification of the second electronic equipment 22 is saved to the list of file attribute memory module 24, file copy operation
Module 27 is by file copy to the second electronic equipment 22.
The attribute of file further comprises the path of file.If file attribute read module 25 receives the finger for continuing copy
It enables, then file copy operation module 27 continues file to copy the second electronic equipment 22 to;If message display module 26 receives
Turn to jump the path of copied files, then 29 turns of the portfolio operations module paths for jumping copied files, to skip copied text
Part.
Fig. 6 is the structural schematic diagram for preventing from repeating the electronic equipment of copied files of third embodiment of the invention, this implementation
The device of mode can execute the step in the above method, and related content refers to the detailed description in the above method, herein not
It goes to live in the household of one's in-laws on getting married and chats again.
The electronic equipment includes: processor 61, the memory coupled with processor 61 62, the transmission coupled with processor 61
Device 63 and receiver 64.
Memory 62 is used for the attribute of storage file and file.
Receiver 64 is used to obtain the device identification of the second electronic equipment 22.
Processor 61 is used for when the first electronic equipment 21 is by file copy to the second electronic equipment 22, is obtained from memory 62
The attribute of file is taken, wherein the attribute of file includes the copied device identification of file.
Processor 61 is also used to for the device identification of the second electronic equipment 22 being compared with copied device identification.If
Processor 61 determines the device identification that copied device identification includes the second electronic equipment 22, then processor 61 prompts user
File has been copied;If processor 61 determines copied device identification not include the second electronic equipment 22 device identification,
Then processor 61 modifies the attribute of file, and the device identification of the second electronic equipment 22 is saved to copied device identification.
Memory 62 is also used to store the attribute of text after modification.
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 device and method can pass through it
Its mode is realized.For example, device embodiments described above are only schematical, for example, the module or unit
Division, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
Technical solution of the present invention substantially the part that contributes to existing technology or the technical solution in other words
Completely or partially it can be embodied in the form of software products, which is stored in a storage medium,
Including some instructions use so that a computer equipment (can be personal computer, server or the network equipment etc.) or
Processor (processor) executes all or part of the steps of each embodiment the method for the present invention.And storage above-mentioned
Medium include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), the various media that can store program code such as magnetic or disk.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.