Real-time file updating and synchronizing method and device based on dynamic state management

Through the real-time file update synchronization method of dynamic state management, the problem of insufficient real-time and permission management in traditional tools is solved, fast and secure file synchronization and data consistency management are achieved, and project progress and storage efficiency are improved.

CN120277044APending Publication Date: 2025-07-08WUHAN TEN PAST TWO CULTURAL COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510382037.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Traditional file synchronization tools have shortcomings in real-time, efficiency and permission management in animation, film and television production and other projects, resulting in information lag and permission settings that are not flexible enough, affecting project progress and work quality.

Method used

The real-time file update synchronization method based on dynamic state management is adopted, and the file update content is determined by receiving information from the file system monitoring API in real time, and the mapping files are incrementally updated, information is displayed and tagged, and file integrity is verified using hash values to display file association relationships.

Benefits of technology

It realizes fast and secure file synchronization, reduces waiting time, improves project progress and storage efficiency, enhances visual recognition and file association understanding, and ensures data integrity and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277044A_ABST
    Figure CN120277044A_ABST
Patent Text Reader

Abstract

The invention provides a real-time file updating and synchronizing method and device based on dynamic state management, and relates to the technical field of computers.The real-time file updating and synchronizing method based on dynamic state management comprises the steps that file state information transmitted by a file system monitoring API is received in real time; the file state information comprises current file states corresponding to different types of target monitoring files of the first terminal; determining file updating content based on the current file state information and the file state information of the last period, and performing incremental updating on a mapping file corresponding to the second terminal based on the file updating content to obtain a corresponding target updating file; the mapping file and the target monitoring file are the same in type; displaying display information matched with the target update file in a display control of the second terminal, and marking a display area where the display information is located. According to the method, the mapping file of the client is incrementally updated, so that the synchronization efficiency of upstream and downstream information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a real-time file update synchronization method and device based on dynamic status management. Background Art

[0002] In projects such as animation and film and television production, there are often multiple upstream and downstream collaboration links, such as animation design, simulation, special effects production, lighting processing, etc. These links need to cooperate closely to ensure the smooth progress of the project and the quality of the final work. However, traditional file synchronization tools have exposed many problems in practical applications, especially in terms of real-time performance, efficiency, and security. Traditional file synchronization tools usually rely on manual checks or timed polling mechanisms to monitor file updates. This method is not only inefficient but also prone to information lag, making it impossible for downstream links to obtain upstream update dynamics in a timely manner. This will affect the overall progress of the project and the quality of the final work. Especially in animation and film and television production projects with multi-link collaboration, permission management between different links and roles is crucial. Traditional file synchronization tools may not be flexible and detailed enough in permission settings and management, and cannot meet the needs of fine-grained permission control for different roles and links in the project, resulting in serious information lag for downstream links to obtain upstream update dynamics. Summary of the Invention

[0003] In view of this, the present invention proposes a real-time file update synchronization method and device based on dynamic status management.

[0004] The technical solution of the present invention is implemented as follows: In the first aspect of the present invention, a real-time file update synchronization method based on dynamic status management is provided, including:

[0005] Receiving in real time the file status information transmitted by the file system monitoring API; the file status information includes the current file status corresponding to different types of target monitoring files of the first terminal;

[0006] Determining the file update content based on the current file status information and the file status information of the previous cycle, and incrementally updating the mapped file corresponding to the second terminal based on the file update content to obtain the corresponding target update file; the mapped file has the same type as the target monitoring file;

[0007] Displaying in the display control of the second terminal the display information matching the target update file and marking the display area where the display information is located.

[0008] Based on the above technical solutions, preferably, determining the file update content based on the current file status information and the file status information of the previous cycle, and incrementally updating the mapping file corresponding to the second terminal based on the file update content to obtain the corresponding target update file, includes:

[0009] Determining the newly added content, modified content, and / or deleted content of the file based on the current file status information and the file status information of the previous cycle;

[0010] Incrementally updating the mapping file corresponding to the second terminal using the newly added content, modified content, and / or deleted content of the file to obtain the corresponding target update file;

[0011] Obtaining the first hash value of the target update file, and if the first hash value is consistent with the expected hash value, determining that the target update file meets the requirements.

[0012] Based on the above technical solutions, preferably, marking the display area where the display information is located, includes:

[0013] Switching the background color of the display area where the display information is located to the first marking color; the first marking color is different from the background colors of the display areas where other display information is located;

[0014] Or, adding a marking symbol or marking number to the display area where the display information is located.

[0015] Based on the above technical solutions, preferably, marking the display area where the display information is located, includes:

[0016] Obtaining the association relationship between different types of target monitoring files;

[0017] When performing the first type of marking on the display area where the first mapping file corresponding to the first target file is located, performing the second type of marking on the display area where the second mapping file corresponding to the second target file associated with the first target file is located.

[0018] Even more preferably, a real-time file update synchronization device based on dynamic state management according to the second aspect of the present invention includes: a file receiving module, a file update module, and an information display module; wherein,

[0019] The file receiving module is configured to receive in real time the file status information transmitted by the file system monitoring API; the file status information includes the current file status corresponding to different types of target monitoring files of the first terminal;

[0020] The file update module is configured to determine file update content based on the current file status information and the file status information of the previous cycle, and perform incremental update on the mapping file corresponding to the second terminal based on the file update content to obtain a corresponding target updated file; the mapping file has the same type as the target monitoring file;

[0021] The information display module is configured to display display information matching the target updated file in the display control of the second terminal and mark the display area where the display information is located.

[0022] On the basis of the above technical solutions, preferably, the file update module is specifically configured as follows:

[0023] Determine file addition content, file modification content, and / or file deletion content based on the current file status information and the file status information of the previous cycle;

[0024] Use the file addition content, the file modification content, and / or the file deletion content to perform incremental update on the mapping file corresponding to the second terminal to obtain a corresponding target updated file;

[0025] Obtain the first hash value of the target updated file, and if the first hash value is consistent with the expected hash value, determine that the target updated file meets the requirements.

[0026] On the basis of the above technical solutions, preferably, the information display module is specifically configured as follows:

[0027] Switch the background color of the display area where the display information is located to the first marking color; the first marking color is different from the background colors of the display areas where other display information is located;

[0028] Or, add a marking symbol or a marking number in the display area where the display information is located.

[0029] On the basis of the above technical solutions, preferably, the information display module is specifically configured as follows:

[0030] Obtain the association relationship between different types of target monitoring files;

[0031] In the case of performing a first type of marking on the display area where the first mapping file corresponding to the first target file is located, perform a second type of marking on the display area where the second mapping file corresponding to the second target file associated with the first target file is located.

[0032] More preferably, in a third aspect of the present invention, an electronic device is provided, including a processor and a memory; the memory stores a computer program, wherein the computer program, when executed by the processor, implements the real-time file update synchronization method based on dynamic state management described in the first aspect.

[0033] More preferably, in a fourth aspect of the present invention, a computer storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the real-time file update synchronization method based on dynamic state management described in the first aspect.

[0034] A real-time file update synchronization method and device based on dynamic state management of the present invention have the following beneficial effects compared with the prior art:

[0035] 1. Incrementally update the mapped file corresponding to the second terminal based on the file update content, that is, only update the data part where the version has changed, rather than the entire file, so that the downstream link can receive the update content from the upstream link faster, reduce the waiting time, contribute to accelerating the overall progress of the project, ensure the close cooperation between each link, and at the same time, reduce the storage space requirement of the client, enabling the project team to manage storage resources more flexibly.

[0036] 2. By setting different first marker colors, marker symbols or numbers for specific display information, the visual recognition is enhanced, which helps to construct the hierarchy of information and helps users better understand the overall structure and process of the information. Through color coding, it is convenient for users to judge the priority, status or category of information according to attributes such as the depth and warmth of the color, so as to process information more efficiently.

[0037] 3. By marking different categories of the first mapped file of the first target file and the second mapped file of the second target file associated with it, the association relationship between files can be intuitively displayed, enabling users to quickly understand the internal connection between files and reducing the time for information retrieval and understanding. When a certain file changes, it is possible to directly check whether the other files associated with it have also been updated accordingly, thereby ensuring the integrity and consistency of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0039] Figure 1Schematic flowchart of a real-time file update synchronization method based on dynamic state management provided by an embodiment of the present invention;

[0040] Figure 2 Schematic structural diagram of a real-time file update synchronization device based on dynamic state management provided by an embodiment of the present invention;

[0041] Figure 3 Schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0042] Next, in combination with the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0043] In some embodiments, as Figure 1 shown, Figure 1 Schematic flowchart of a real-time file update synchronization method based on dynamic state management provided by an embodiment of the present invention; A real-time file update synchronization method based on dynamic state management provided by the present invention includes:

[0044] S110, receiving in real time the file status information transmitted by the file system monitoring API; the file status information includes the current file status corresponding to different types of target monitored files of the first terminal.

[0045] In this embodiment, the file system monitoring API can be a file system monitoring mechanism provided by the operating system, such as the ReadDirectoryChangesW function of Windows, the inotify mechanism of Linux, etc., or a third-party file system monitoring tool. The monitoring target can be a selected set of files to be monitored, and these files can be of any type such as documents, pictures, videos, etc. The file status information can include attributes such as the creation time, modification time, size, access permission, and existence of the file, as well as status changes such as whether the file is deleted, renamed, or moved.

[0046] S120, determining the file update content based on the current file status information and the file status information of the previous cycle, and performing incremental update on the mapped file corresponding to the second terminal based on the file update content to obtain the corresponding target updated file; the mapped file is of the same type as the target monitored file.

[0047] In this embodiment, retrieve from the storage system or obtain from the cache the file status information of the previous cycle (such as the file status information of the last synchronization or checkpoint. Here, the previous cycle is the last synchronization or checkpoint. Compare the current file status information with the file status information of the previous cycle to identify the changed parts of the file content. Generate the incremental update content of the file according to the comparison result. Find the mapping file of the same type as the target monitored file on the second terminal for synchronization. Apply the generated incremental update content to the mapping file to achieve the synchronous update of the file.

[0048] In some embodiments, S120, determine the file update content based on the current file status information and the file status information of the previous cycle, and perform incremental update on the mapping file corresponding to the second terminal based on the file update content to obtain the corresponding target update file, including:

[0049] Determine the newly added content, modified content, and / or deleted content of the file based on the current file status information and the file status information of the previous cycle;

[0050] Perform incremental update on the mapping file corresponding to the second terminal using the newly added content, modified content, and / or deleted content of the file to obtain the corresponding target update file;

[0051] Obtain the first hash value of the target update file. If the first hash value is consistent with the expected hash value, determine that the target update file meets the requirements.

[0052] In this embodiment, the file update content can be at least one of the newly added content, modified content, and deleted content of the file. The hash algorithm is extremely sensitive to minor changes in the input data. Even if the file content changes by only one byte, its hash value will change significantly, generating a new hash value. This sensitivity makes the hash value very effective in file integrity verification because any tampering with the file will immediately be reflected in the change of the hash value. Here, the expected hash value is the hash value of the target monitored file of the first terminal. Compare it with the first hash value. If the two hash values are the same, then it can be ensured that the file has not been tampered with during transmission because any modification to the file will change its hash value. If the two hash values are different, then it can be determined that the file may have been tampered with during transmission, or the file has been damaged during transmission.

[0053] S130, display the display information matching the target update file in the display control of the second terminal and mark the display area where the display information is located.

[0054] In this embodiment, the second terminal is another terminal connected to the first terminal by wire or wirelessly. For example, it can be a downstream terminal of the first terminal. By marking the display area where the display information is located, it helps users more intuitively understand the file status information.

[0055] In some embodiments, S130, marking the display area where the display information is located includes:

[0056] Switching the background color of the display area where the display information is located to a first marking color; the first marking color is different from the background colors of the display areas where other display information is located;

[0057] Or, adding marking symbols or marking numbers to the display area where the display information is located.

[0058] In this embodiment, the background color of the display area can be set to a color different from other areas for highlighting, or the text color of the display information can be set to a color different from other texts. Additionally, a border can be added around the display area or a highlighting effect can be used for highlighting, or an icon or symbol such as a tick, asterisk, or exclamation mark can be added next to the display area to indicate the status or importance. Moreover, an interactive function such as a click event or a hover effect can be added to the marked display area. In this way, users can obtain more information or perform relevant operations by clicking or hovering over the marked area. By highlighting the display information, the visual recognition is enhanced, which helps users better understand the overall structure and process of the information, thus processing the information more efficiently.

[0059] Exemplarily, green indicates that the current link does not need to be updated, red indicates that it needs to be updated, gray indicates that it has not started, and yellow indicates a process version file. When the upstream animation file is updated, the system marks the current link as red and pops up a window to remind downstream personnel; if the solution link does not need to be processed, the status is marked green; the system automatically checks the modification times of the engineering file and the released file. If the engineering file is newer, it prompts that an update is required; if the historical file in the server is missing, the comparison is automatically skipped to avoid jamming.

[0060] In some embodiments, S130, marking the display area where the display information is located includes:

[0061] Obtaining the association relationship between different types of target monitoring files;

[0062] In the case of performing a first type of marking on the display area where the first mapping file corresponding to the first target file is located, performing a second type of marking on the display area where the second mapping file corresponding to the second target file having an association relationship with the first target file is located.

[0063] In this embodiment, according to the association relationship between files, monitoring resources can be more reasonably allocated. For example, key files or file groups can be monitored more intensively. When an abnormality occurs in a target file, the system can quickly identify and mark other files associated with it, thereby giving early warnings of potential problems and improving the efficiency and accuracy of monitoring. It should be noted that a series of pop-up window optimizations, system tray functions, and search and viewing functions can also be used to enhance the operation convenience and improve the user experience.

[0064] In some embodiments, please refer to Figure 2 , Figure 2 which is a schematic structural diagram of a real-time file update synchronization device based on dynamic state management provided by an embodiment of the present invention. The present invention provides a real-time file update synchronization device 200 based on dynamic state management, including: a file receiving module 210, a file update module 220, and an information display module 230; wherein,

[0065] The file receiving module 210 is configured to receive in real time the file status information transmitted by the file system monitoring API; the file status information includes the current file status corresponding to different types of target monitoring files of the first terminal;

[0066] The file update module 220 is configured to determine the file update content based on the current file status information and the file status information of the previous cycle, and perform incremental updates on the mapped files corresponding to the second terminal based on the file update content to obtain corresponding target updated files; the mapped files have the same type as the target monitoring files;

[0067] The information display module 230 is configured to display in the display control of the second terminal the display information matching the target updated file and mark the display area where the display information is located.

[0068] In some embodiments, the file update module 220 is specifically configured to:

[0069] Determine the file new content, file modification content, and / or file deletion content based on the current file status information and the file status information of the previous cycle;

[0070] Use the file new content, file modification content, and / or file deletion content to perform incremental updates on the mapped files corresponding to the second terminal to obtain corresponding target updated files;

[0071] Obtain the first hash value of the target updated file. If the first hash value is consistent with the expected hash value, determine that the target updated file meets the requirements.

[0072] In some embodiments, the information display module 230 is specifically configured to:

[0073] Switch the background color of the display area where the display information is located to the first marked color; the first marked color is different from the background colors of the display areas where other display information is located;

[0074] Or, add a marking symbol or a marking number to the display area where the display information is located.

[0075] In some embodiments, the information display module 230 is specifically configured to:

[0076] Obtain the association relationship between different types of target monitoring files;

[0077] In the case of performing a first type of marking on the display area of the first mapping file corresponding to the first target file, perform a second type of marking on the display area of the second mapping file corresponding to the second target file that has an association relationship with the first target file.

[0078] It should be noted that the real-time file update synchronization device based on dynamic state management provided in the embodiments of the present application and the real-time file update synchronization method based on dynamic state management provided in the embodiments of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned real-time file update synchronization method based on dynamic state management, and the repeated parts will not be elaborated.

[0079] In some embodiments, please refer to Figure 3 , Figure 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. An electronic device 300 provided in an embodiment of the present application includes a processor 310 and a memory 320; the memory 320 stores a computer program, and wherein, when the computer program is executed by the processor, it implements the above-mentioned real-time file update synchronization method based on dynamic state management.

[0080] Specifically, the processor 310 may include, for example, a general microprocessor, an instruction set processor, and / or a related chipset and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), and so on. The processor 310 may also include on-board memory for caching purposes. The processor 310 may be a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present application.

[0081] The memory 320 may be, for example, any medium capable of containing, storing, transmitting, propagating, or transferring instructions. For example, the memory 320 may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the memory 320 include: magnetic storage devices, such as magnetic tapes or hard disk drives (HDDs); optical storage devices, such as compact discs (CD-ROMs); may also be, for example, random access memory (RAM) or flash memory; and / or wired / wireless communication links.

[0082] The present application also provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, it implements the above-described real-time file update synchronization method based on dynamic state management. The computer-readable medium may be included in the device / apparatus / system described in the above embodiments; or it may exist alone and not be assembled into the device / apparatus / system. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiments of the present application is implemented.

[0083] According to an embodiment of the present application, the computer-readable medium may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may, for example, but not be limited to, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but not be limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. And in the present application, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted by any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above.

[0084] Those skilled in the art can understand that the features recited in the various embodiments and / or claims of the present application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present application. In particular, without departing from the spirit and teachings of the present application, the features recited in the various embodiments and / or claims of the present application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present application. Therefore, the scope of the present application should not be limited to the above embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A real-time file update synchronization method based on dynamic state management, characterized in that, including: Receiving in real time the file status information transmitted by the file system monitoring API; The file status information includes the current file status corresponding to different types of target monitoring files of the first terminal; Determining file update content based on the current file status information and the file status information of the previous cycle, and incrementally updating the mapping file corresponding to the second terminal based on the file update content to obtain a corresponding target update file; The mapping file is of the same type as the target monitoring file; Displaying in the display control of the second terminal the display information matching the target update file and marking the display area where the display information is located.

2. The real-time file update synchronization method based on dynamic state management according to claim 1, wherein The determining file update content based on the current file status information and the file status information of the previous cycle, and incrementally updating the mapping file corresponding to the second terminal based on the file update content to obtain a corresponding target update file includes: Determining file addition content, file modification content, and / or file deletion content based on the current file status information and the file status information of the previous cycle; Incrementally updating the mapping file corresponding to the second terminal using the file addition content, the file modification content, and / or the file deletion content to obtain a corresponding target update file; Obtaining a first hash value of the target update file, and if the first hash value is consistent with the expected hash value, determining that the target update file meets the requirements.

3. The real-time file update synchronization method based on dynamic state management according to claim 1, wherein The marking the display area where the display information is located includes: Switching the background color of the display area where the display information is located to a first marking color; the first marking color is different from the background colors of the display areas where other display information is located; Or, adding a marking symbol or a marking number in the display area where the display information is located.

4. The real-time file update synchronization method based on dynamic state management according to claim 1, characterized in that The marking the display area where the display information is located includes: Obtaining the association relationship between different types of target monitoring files; When performing a first type of marking on the display area where the first mapping file corresponding to the first target file is located, performing a second type of marking on the display area where the second mapping file corresponding to the second target file associated with the first target file is located.

5. A real-time file update synchronization device based on dynamic state management, characterized in that including: A file receiving module, a file updating module, and an information display module; wherein, The file receiving module is configured to receive in real time the file status information transmitted by the file system monitoring API; the file status information includes the current file status corresponding to different types of target monitoring files of the first terminal; The file updating module is configured to determine file update content based on the current file status information and the file status information of the previous cycle, and incrementally update the mapping file corresponding to the second terminal based on the file update content to obtain a corresponding target update file; the mapping file is of the same type as the target monitoring file; The information display module is configured to display in the display control of the second terminal the display information matching the target update file and mark the display area where the display information is located.

6. The real-time file update synchronization device based on dynamic state management according to claim 5, wherein The file updating module is specifically configured to: Determine the newly added content, modified content, and / or deleted content of the file based on the current file status information and the file status information of the previous cycle; Incrementally update the mapping file corresponding to the second terminal by using the newly added content, modified content, and / or deleted content of the file to obtain the corresponding target updated file; Obtain the first hash value of the target updated file, and if the first hash value is consistent with the expected hash value, determine that the target updated file meets the requirements.

7. The real-time file update synchronization device based on dynamic state management according to claim 5, characterized in that The information display module is specifically configured as follows: Switch the background color of the display area where the display information is located to the first marking color; the first marking color is different from the background colors of the display areas where other display information is located; Or, add a marking symbol or marking number to the display area where the display information is located.

8. The real-time file update synchronization device based on dynamic state management according to claim 5, characterized in that, The information display module is specifically configured as follows: Obtain the association relationship between different types of target monitoring files; When performing the first type of marking on the display area where the first mapping file corresponding to the first target file is located, perform the second type of marking on the display area where the second mapping file corresponding to the second target file having an association relationship with the first target file is located.

9. An electronic device, comprising a processor and a memory; the memory stores a computer program, wherein, When the computer program is executed by the processor, it implements the real-time file update synchronization method based on dynamic state management according to any one of claims 1 to 4.

10. A computer storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by the processor, it implements the real-time file update synchronization method based on dynamic state management according to any one of claims 1 to 4.