CN101685461B - Method for integrally transferring project file and related mapping file - Google Patents

Method for integrally transferring project file and related mapping file Download PDF

Info

Publication number
CN101685461B
CN101685461B CN 200810223664 CN200810223664A CN101685461B CN 101685461 B CN101685461 B CN 101685461B CN 200810223664 CN200810223664 CN 200810223664 CN 200810223664 A CN200810223664 A CN 200810223664A CN 101685461 B CN101685461 B CN 101685461B
Authority
CN
China
Prior art keywords
file
project
copy
mapped
correlation map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200810223664
Other languages
Chinese (zh)
Other versions
CN101685461A (en
Inventor
刘鹏
谈琴芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN 200810223664 priority Critical patent/CN101685461B/en
Publication of CN101685461A publication Critical patent/CN101685461A/en
Application granted granted Critical
Publication of CN101685461B publication Critical patent/CN101685461B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the file copy technology of image-text packaging, in particular to a method for integrally transferring a project file and a related mapping file. In the method, the project file is integrally packed and transferred with the related mapping file in the process of transferring the project file of an image-text packaging system, and association between the transferred project file and the mapping file is established, so the loss of the mapping file information on the project file is avoided and the integrity of the transferred project file information is fundamentally ensured.

Description

The method for integrally transferring of a kind of project file and correlation map file
Technical field
The present invention relates to the file duplication technology of picture and text packing, be specifically related to the method for integrally transferring of a kind of project file and correlation map file.
Background technology
In the picture and text packaging system, often have the situation that a project file that has editted is copied or shifts and occur, so that the broadcast control in strange land or work such as modification and backup.Project file can be to there being some relevant mapped files, and the type of these mapped files mainly comprises: the file of general picture resource (comprising format pictures such as * .jpg, * .bmp, * .tga), mapping picture file, video file, font template base etc.In the prior art, often just simply project file is shifted, and do not have the complete information of noting the correlation map file.Therefore, project file tends to produce losing of correlation map file in transfer process, and makes this project file lack integrality, drop-out, thus influence work.
Summary of the invention
The objective of the invention is the defective at prior art, the method for integrally transferring of a kind of project file and correlation map file is provided, thereby when shifting project file, guarantee its information integrity.
Technical scheme of the present invention is as follows: the method for integrally transferring of a kind of project file and correlation map file comprises the steps:
(1) information of mapped file that will be relevant with project file is recorded in the file mapping table, and the information of the mapped file that records in the file mapping table comprises: path full name of file, and its used unique identifier in engineering;
(2) when shifting project file to destination folder, travel through above-mentioned file mapping table, carry out the copy of respective file and file one by one;
(3) after project file and mapped file have all carried out corresponding transfer, the file mapping table in the reconstruction engineering file, with the mapped file of new copy as the new correlation map file that shifts the project file of generation.
Further, the method for integrally transferring of aforesaid project file and correlation map file, wherein, the file destination that is transferred to is clipped under the different directories of current engineering place computer, perhaps with current engineering under in the different target machine.
Further, the method for integrally transferring of aforesaid project file and correlation map file, wherein, the copy for mapped file comprises the steps:
1. at first in destination folder, seek the picture file clip directory and whether exist, if there is no then according to the Folder Name new folder;
2. obtain new file path name by filename and new route name, below new file, search whether there is same file;
3. as there not being same file, then carry out the copy of file.
Further, the method for integrally transferring of aforesaid project file and correlation map file wherein, for the copy of the general picture file in the mapped file, is being searched when whether having same file, and the condition of judgement comprises:
A. whether the title of file is identical,
B. whether the creation-time of file is identical,
C. whether the size of file is identical;
In destination folder, exist the title of file identical, but under the different situation of creation-time or file size, file is carried out the rename copy.
Further, the method for integrally transferring of aforesaid project file and correlation map file wherein, for the copy of the tga sequence of pictures file in the mapped file, is being searched when whether having same file, and the condition of judgement comprises:
A. whether the title of file is identical,
B. whether the creation-time of file is identical,
C. whether the size of file is identical,
D. whether head and the tail frame file is identical;
In destination folder, exist the title of file identical, but under the different situation of creation-time or file size or head and the tail frame file, file is carried out the rename copy.
Further, the method for integrally transferring of aforesaid project file and correlation map file, wherein, if the file destination that is transferred to be clipped in current engineering under in the different target machine, then the font file in the corresponding font template base of project file is copied in the fontlib of target machine.
Beneficial effect of the present invention is as follows: pass through the method for the invention, in the process that the project file of picture and text packaging system shifts, associated mapped file has also been carried out integrated packing to be shifted, and between the project file after the transfer and mapped file, set up related, thereby, avoided losing of the mapped file information relevant with project file, the project file information integrity after fundamentally having guaranteed to shift.
Description of drawings
Fig. 1 is method flow diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in detail.
The invention provides the global transfer implementation method of a kind of mapped file and project file.In general, in the preservation of project file, the information of correlation map file has been recorded time, existed in the file mapping table, therefore when shifting project file, will travel through this document mapping table, obtain mapped file information, carry out the copy of respective file and file one by one.After project file and mapped file had all carried out corresponding transfer, the file mapping table in the reconstruction engineering file as the new correlation map file that shifts the project file of generation, remapped the mapped file of new copy.
The type of mapped file mainly comprises: general picture resource (comprising * .jpg, * .bmp, format pictures such as * .tga), the file of mapping picture file, video file, font template base etc.The one packing of font template is only carried out just needing to carry out when project file shifts between different machines.
The information of the mapped file that records in the file mapping table generally comprises: path full name of file, such as: C: Images chinaflag.tga and it a used unique identifier in engineering, because may repeatedly use a file in the engineering, substitute with an identifier in the file, the corresponding filename of identifier, just can obtain file name information with identifier, thereby search for the acquisition file.
Also support the client to specify the copy of certain file outside the copy of method provided by the present invention mapped file in carrying out engineering, this document folder may not have associated documents to be present in the engineering in current engineering, but performed link can be replaced and have some mapped file in the engineering now such as carrying out project file needs when broadcasting after shifting project file.We can say that the file in this document folder is standby, can be used as the following expansion that needs of current project file.
Transfer for project file comprises two kinds of situations: 1. file destination is clipped under the different directories of current engineering place computer; 2. destination folder and current engineering belong to the different target machine.The difference of the former with the latter is: latter's fontlib of need packing, if there are a common configuration folder in current machine and target machine, the file of mapping all is present in the resources bank, resource file can be stored in this document folder and needn't carry out the transfer work of mapped file.Therefore, the file in the resource file folder that in practical operation, generally needs to select whether to pack, the user can select according to following situation.
1. the file that shines upon of project file all is present in the resources bank, at this moment, behind the path of differentiating all mapped files, can a package engineering file, need not to carry out the copy of mapped file, the user also can pack this part mapping file and be present under the relative catalogue of project file certainly.
2. the file part that shines upon of project file is present in the resources bank, and then the file that the mapped file in the resources bank is carried out in the selectable packing alternative document folder is then packed.
3. the file that shines upon of project file is not present in the resources bank, then institute's mapped file is packed by executive mode of the present invention according to different file types.
Use the difference of mapping resource file type according to project file, for the ease of management, mapped file in the project file extracted be divided three classes: general picture is transferred to the file with " Images " name under the project file catalogue at the same level, font file then directly copies the system font storehouse of target machine, and the tga sequential file is transferred to the file with " ImageSeq " name under the project file catalogue at the same level.
Packing process to the mapped file of several types is introduced below.
● the packing process of general picture file:
1. at first in destination folder, seek the picture file clip directory and whether exist, if there is no then according to the Folder Name new folder;
2. obtain new file path name by filename and new route name, below new file, search whether there is same file;
3. as there not being same file, then carry out the copy of file.
Search when whether having same file, the condition of judgement comprises:
A. whether the title of file is identical
B. whether the creation-time of file is identical
C. whether the size of file is identical
If meet above-mentioned three conditions then do not copy, eligible a, but ineligible b or c, then carry out the rename copy of file, be ininame_1 with file designation, should check the ininame_1 file whether to exist earlier before the name copy, if having also comparison condition b or c; Go on successively, do not have the consistent file that carries out to copy up to title.
● the packing process of tga sequential file:
The tga sequential file refers to a kind of dynamic picture be made up of a series of tga picture files, the animation effect that approximate a kind of avi picture has, and it needs the tga picture file resource of a series of continuous names.The information such as initial name of the tga file of quoting have been recorded in this tga sequential file.During the packing of tga sequential file, such as tga sequential file " background ", at first tga sequential file " background " packing is put under " ImageSeq " file of target location, then the tga file of quoting is left under the file of naming with the filename of this tga sequential file " background ".The packing processing procedure of the type file is:
1. at first in destination folder, seek the picture file clip directory and whether exist, if there is no then according to the Folder Name new folder;
2. obtain new file path name by filename and new route name, below new file, search whether there is same file;
3. as there not being same file, then carry out the copy of file.
Search when whether having same file, the condition of judgement comprises:
A. whether the title of file is identical
B. whether the creation-time of file is identical
C. whether the size of file is identical
D. whether head and the tail frame file is identical
If there is no same file then carries out the copy of sequential file, and a newly-built file with this sequence of pictures name copies these files in this document folder.
If meet above-mentioned four conditions then do not copy, eligible a, but ineligible b or c or d, again rename file as ininame_1, whether the file of judging this newname again exists, and the like, there is not corresponding file up to newname, carry out the copy of sequential file then.
● the processing of video file is similar to the packing of general image and handles.
● the copy of font file
If the file destination that is transferred to be clipped in current engineering under in the different target machine, then the font file in the corresponding font template base of project file is copied in the fontlib of target machine.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.

Claims (8)

1. the method for integrally transferring of a project file and correlation map file comprises the steps:
(1) information of mapped file that will be relevant with project file is recorded in the file mapping table, and the information of the mapped file that records in the file mapping table comprises: path full name of file, and its used unique identifier in engineering;
(2) when shifting project file to destination folder, travel through above-mentioned file mapping table, carry out the copy of respective file and file one by one;
(3) after project file and mapped file have all carried out corresponding transfer, the file mapping table in the reconstruction engineering file, with the mapped file of new copy as the new correlation map file that shifts the project file of generation.
2. the method for integrally transferring of project file as claimed in claim 1 and correlation map file, it is characterized in that: the file destination that is transferred to is clipped under the different directories of current engineering place computer, perhaps with current engineering under in the different target machine.
3. the method for integrally transferring of project file as claimed in claim 1 or 2 and correlation map file, it is characterized in that: the copy for mapped file comprises the steps:
1. at first in destination folder, seek the picture file clip directory and whether exist, if there is no then according to the Folder Name new folder;
2. obtain new file path name by filename and new route name, below new file, search whether there is same file;
3. as there not being same file, then carry out the copy of file.
4. the method for integrally transferring of project file as claimed in claim 3 and correlation map file is characterized in that: for the copy of the general picture file in the mapped file, searching when whether having same file, the condition of judgement comprises:
A. whether the title of file is identical,
B. whether the creation-time of file is identical,
C. whether the size of file is identical.
5. the method for integrally transferring of project file as claimed in claim 4 and correlation map file, it is characterized in that: for the copy of the general picture file in the mapped file, in destination folder, exist the title of file identical, but under the different situation of creation-time or file size, file is carried out the rename copy.
6. the method for integrally transferring of project file as claimed in claim 3 and correlation map file is characterized in that: for the copy of the tga sequence of pictures file in the mapped file, searching when whether having same file, the condition of judgement comprises:
A. whether the title of file is identical,
B. whether the creation-time of file is identical,
C. whether the size of file is identical,
D. whether head and the tail frame file is identical.
7. the method for integrally transferring of project file as claimed in claim 6 and correlation map file, it is characterized in that: for the copy of the tga sequence of pictures file in the mapped file, in destination folder, exist the title of file identical, but under the different situation of creation-time or file size or head and the tail frame file, file is carried out the rename copy.
8. the method for integrally transferring of project file as claimed in claim 2 and correlation map file, it is characterized in that: if the file destination that is transferred to be clipped in current engineering under in the different target machine, then the font file in the corresponding font template base of project file is copied in the fontlib of target machine.
CN 200810223664 2008-09-28 2008-09-28 Method for integrally transferring project file and related mapping file Expired - Fee Related CN101685461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810223664 CN101685461B (en) 2008-09-28 2008-09-28 Method for integrally transferring project file and related mapping file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810223664 CN101685461B (en) 2008-09-28 2008-09-28 Method for integrally transferring project file and related mapping file

Publications (2)

Publication Number Publication Date
CN101685461A CN101685461A (en) 2010-03-31
CN101685461B true CN101685461B (en) 2013-09-18

Family

ID=42048625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810223664 Expired - Fee Related CN101685461B (en) 2008-09-28 2008-09-28 Method for integrally transferring project file and related mapping file

Country Status (1)

Country Link
CN (1) CN101685461B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073680B (en) * 2010-12-17 2014-04-16 中广核(北京)仿真技术有限公司 Data switching method and system of nuclear simulation platform and configuration management system
CN102411507A (en) * 2011-07-29 2012-04-11 深圳市合众研创科技有限公司 Method and system for initializing and detecting embedded equipment by using secure digital (SD) card
CN103886071B (en) * 2014-03-21 2017-09-29 广州猎豹网络科技有限公司 File on mobile terminal is sent to the method, system and device of local device
CN104484394B (en) * 2014-12-12 2018-11-06 北京国双科技有限公司 The processing method and processing device of project set
CN104915462A (en) * 2015-07-14 2015-09-16 魅族科技(中国)有限公司 File management method and system
CN106855887A (en) * 2016-12-26 2017-06-16 努比亚技术有限公司 A kind of method of file management, device and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1659873A (en) * 2002-06-12 2005-08-24 皇家飞利浦电子股份有限公司 Trick play of an encrypted video stream
CN101091217A (en) * 2005-10-17 2007-12-19 株式会社东芝 Information storage medium, information reproducing apparatus, and information reproducing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1659873A (en) * 2002-06-12 2005-08-24 皇家飞利浦电子股份有限公司 Trick play of an encrypted video stream
CN101091217A (en) * 2005-10-17 2007-12-19 株式会社东芝 Information storage medium, information reproducing apparatus, and information reproducing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴信一.慎用Copy文件的方法来备份OE邮件.《办公自动化》.2003,(第47期),62. *

Also Published As

Publication number Publication date
CN101685461A (en) 2010-03-31

Similar Documents

Publication Publication Date Title
CN101685461B (en) Method for integrally transferring project file and related mapping file
US7143114B2 (en) Automatic renaming of files during file management
US8051111B2 (en) Method and system for modularizing windows imaging format
CN104714859B (en) A kind of quick backup of mass file and the method recovered
US8468291B2 (en) Asynchronous distributed object uploading for replicated content addressable storage clusters
US7752226B1 (en) Reverse pathname lookup by inode identifier
US10635548B2 (en) Data block name based efficient restore of multiple files from deduplicated storage
US20160110109A1 (en) Using scratch extents to facilitate copying operations in an append-only storage system
US9542397B1 (en) File block addressing for backups
EP2615566A2 (en) Unified local storage supporting file and cloud object access
AU2018202510A1 (en) Client storage for cloud-synchronized digital media assets
CN102567218A (en) Garbage collection and hotspots relief for a data deduplication chunk store
WO2010044781A1 (en) Aggregating media content from multiple clients to a server
CN101188544A (en) File transfer method for distributed file server based on buffer
CN100498781C (en) Method for storing metadata of logic document system by adhesion property
US20170091215A1 (en) Write-back cache transaction replication to object-based storage
JP3409652B2 (en) Multimedia information providing device
CN102495772B (en) Characteristic-based terminal program cloud backup and recovery methods
CN105787093A (en) Log file system construction method based on LSM-Tree structure
CN109284273B (en) Massive small file query method and system adopting suffix array index
CN107741889A (en) Document recovery method, system, readable storage medium storing program for executing and terminal
CN111078464A (en) Method, device and system for backing up data
EP1209586A2 (en) File management method and content recording/playback apparatus
CN106020713A (en) File storage method based on buffer area
CN113254394B (en) Snapshot processing method, system, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130918

Termination date: 20160928