摘要 |
<p>The present invention relates to the field of communications technologies, and in particular, to a file synchronization method and device. The file synchronization method includes: acquiring a first file list snapshot, where the first file list snapshot includes information of a local file list stored when last synchronization ends; comparing the first file list snapshot with information of the current local file list to acquire a second file list snapshot, where the second file list snapshot includes an update operation of the current local file list; sending a file list snapshot request to a server; receiving a third file list snapshot sent by the server, where the third file list snapshot includes information of a file list of the server; and determining, according to the second file list snapshot and the third file list snapshot, an identifier and an operation of a file to be synchronized, and performing file synchronization with the server according to the identifier and the operation of the file to be synchronized. Through the present invention, two-way synchronization between a device for synchronization and the server can be implemented, thereby improving user experience.</p> |