摘要 |
<p>A file merge method and device, the method comprising: when a new file is created, determining the type of the new file, and acquiring a file merge policy corresponding to the type of the new file according to a pre-stored corresponding relationship between file types and file merge policies; triggering merge determination according to the file merge policy, that is, determining whether a file merge triggering condition corresponding to the file merge policy is satisfied; if yes, then selecting the files satisfying the file merge triggering condition, and executing file merge. The method provided in an embodiment of the present invention can process files by category, allowing different files to have different merge policies, and the file merge overhead to always remain controllable compared with the method provided in the prior art.</p> |