CN116010364B - Method and device for updating network disk file state, network disk and storage medium - Google Patents

Method and device for updating network disk file state, network disk and storage medium Download PDF

Info

Publication number
CN116010364B
CN116010364B CN202310300581.XA CN202310300581A CN116010364B CN 116010364 B CN116010364 B CN 116010364B CN 202310300581 A CN202310300581 A CN 202310300581A CN 116010364 B CN116010364 B CN 116010364B
Authority
CN
China
Prior art keywords
file
information
network disk
directory
user
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.)
Active
Application number
CN202310300581.XA
Other languages
Chinese (zh)
Other versions
CN116010364A (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.)
Tianjin Lenovo Collaboration Technology Inc
Original Assignee
Tianjin Lenovo Collaboration Technology Inc
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 Tianjin Lenovo Collaboration Technology Inc filed Critical Tianjin Lenovo Collaboration Technology Inc
Priority to CN202310300581.XA priority Critical patent/CN116010364B/en
Publication of CN116010364A publication Critical patent/CN116010364A/en
Application granted granted Critical
Publication of CN116010364B publication Critical patent/CN116010364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a method and a device for updating a network disk file state, a network disk and a storage medium. Wherein the method comprises the following steps: acquiring a change operation of a network disk file, and determining a corresponding network disk file ID according to the change operation; searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation; determining at least one influencing user by utilizing the modified metadata, and judging whether the at least one influencing user accesses the file directory of the network disk file currently; and when the user is influenced to access the directory of the network disk file currently, generating directory file updating information, pushing the directory file updating information to an access terminal of the user to be interfered, enabling the access terminal to refresh immediately, and displaying the updated directory file information. The user can know the file state in the accessed folder in time, and invalid operation on the changed network disk file is avoided.

Description

Method and device for updating network disk file state, network disk and storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronic information, in particular to a method and a device for updating a network disk file state, a network disk and a storage medium.
Background
The network disk is an online storage service promoted by an internet company. The network disk system machine room divides a certain disk space for users, provides functions of file management such as storage, access, backup, sharing and the like of files for the users free or at a charge, and has advanced disaster recovery backup all over the world. A user can realize remote storage, reading and sharing of files through the network disk, so that the use convenience and access flexibility of data materials can be greatly improved.
In general, an enterprise network disk may support multiple employees to operate files or folders within the enterprise network disk, so as to improve the office efficiency of the enterprise. In the process of implementing the present invention, the inventors found the following problems: because the enterprise network disk supports a plurality of users to operate on the network disk at the same time, when the users browse folders or files by using the enterprise network disk, if other users with authority change the related files or folders, the current users can only learn the latest state of the files according to the refusal request fed back by the network disk when operating the changed files or folders. The efficiency of using enterprise network disks to work cooperatively is affected.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating a network disk file state, a network disk and a storage medium, which are used for solving the technical problem that in the prior art, the display state is not updated timely due to the fact that other users change files.
In a first aspect, an embodiment of the present invention provides a method for updating a network disk file state, including:
acquiring a change operation of a network disk file, and determining a corresponding network disk file ID according to the change operation;
searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation;
determining at least one influencing user using the modified metadata and determining whether an interfering user is present, the interfering user comprising: the influence users of the file catalogue of the current access network disk file;
when interference users exist, generating corresponding directory file updating information for each interference user;
pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information.
In a second aspect, an embodiment of the present invention further provides an apparatus for updating a network disk file state, including:
the acquisition module is used for acquiring the change operation of the network disk file and determining the corresponding network disk file ID according to the change operation;
the searching module is used for searching the metadata of the network disk file according to the network disk file ID and modifying the metadata according to the change operation;
a judging module, configured to determine at least one influencing user by using the modified metadata, and judge whether there is an interfering user, where the interfering user includes: the influence users of the file catalogue of the current access network disk file;
the generation module is used for generating directory file updating information when the user is influenced whether to access the directory of the network disk file currently;
and the pushing module is used for pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information.
In a third aspect, an embodiment of the present invention further provides a network disk, including:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for updating a network disk file state as provided in the above embodiment.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method of updating a network disk file state as provided by the above-described embodiments.
According to the method, the device, the network disk and the storage medium for updating the network disk file state, the network disk file ID corresponding to the network disk file is determined according to the changing operation by acquiring the changing operation of the network disk file; searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation; determining at least one influencing user using the modified metadata and determining whether an interfering user is present, the interfering user comprising: the influence users of the file catalogue of the current access network disk file; when interference users exist, generating corresponding directory file updating information for each interference user; pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information. When the file is changed, the influence user accessing the directory where the file is located is determined, directory file updating information is generated according to the modification information, and the directory file updating information is pushed to the terminals of other users which access simultaneously, so that the terminals of the other users can refresh the current directory file interface immediately, and the updated directory file information is displayed. The display state of the displayed network disk file is immediately and timely changed according to the change operation, so that a user can timely know the file state in the accessed folder, and invalid operation on the changed network disk file is avoided.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a method for updating a network disk file status according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for updating a network disk file status according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for updating a network disk file state according to a third embodiment of the present invention;
fig. 4 is a block diagram of a network disk file status updating apparatus according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a network disk according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for updating a status of a network disc file according to an embodiment of the present invention, where the method may be performed by an updating device of the status of the network disc file, and specifically includes the following steps:
step 110, obtaining a change operation of the network disk file, and determining a corresponding network disk file ID according to the change operation.
In this embodiment, the files in the network disk may be provided with corresponding rights, and the user with the corresponding rights may perform corresponding operations on the network disk files. The operations may include: editing, viewing, changing, etc. Optionally, the altering operation may include: move, rename, rights change, and delete operations. When the change operation occurs, the state of the network disk file is correspondingly indicated to change, so that the controlled state of the network disk file needs to be correspondingly adjusted. In this embodiment, the corresponding network disk file ID may be obtained according to the change operation of the network disk file by the user with the above-mentioned change authority, where the network disk file ID is a unique identifier of the file in the network disk. And according to the file object selected in the operation, determining the network disk file ID of the network disk file.
And 120, searching the metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation.
In the network disk database, metadata of each network disk file is recorded, and the metadata of the network disk file can be used for recording description data of the network disk file. In particular, the data is described with respect to rights and the like. Correspondingly, the network disk can correspondingly find the corresponding metadata by determining the network disk file ID of the change operation as the search condition according to the steps. And modifying the metadata according to the change operation. Illustratively, the metadata may include: path information, file attribute information, rights information, and the like are stored. The metadata may be modified according to different altering operations. Illustratively, when the altering operation is a move or delete operation, the corresponding storage path information is correspondingly modified. Since the files in the enterprise disk are not actually deleted, it is necessary to set the storage path to be empty, or a path of a specific flag, indicating that the disk file has been processed by the delete operation. When the restoration is needed, the administrator can restore the storage path of the network disk file after the deletion operation to the folder of another specific path. When the change operation is permission modification, the permission information can be modified correspondingly, and the scope of the authorized user can be adjusted. When the change operation is renamed, the names in the file attribute information in the metadata may be modified.
Step 130, determining at least one influencing user by using the modified metadata, and judging whether an interfering user exists, wherein the interfering user comprises: the current access to the file directory of the network disk file affects the user.
In this embodiment, the influencing user may be a user who has authority to the network disk file corresponding to the change operation before the change operation of the network disk file by other users, and after the change operation, the storage attribute or the self authority of the file is changed. For example: and (3) assuming that the first user and the second user simultaneously open a network disk with the same authority to specific a certain folder page, the first user changes one file in the folder, and the second user is the influencing user. Accordingly, the influencing user may be more than one. The influence on the user may be determined from a list of corresponding rights changes in the modified metadata. Alternatively, the user may be influenced by the modified content in the metadata according to different altering operations. By way of example, it may include: when the change operation is a move, rename and delete operation, taking the user with preview and editing authority on the file as an influencing user; when the changing operation is the permission changing, the user with the permission being invisible is adjusted to the preview and editing permission, and the user with the permission being invisible is used as the influencing user.
After determining that the user is affected, it is necessary to determine whether the change operation interferes with the user, and there is an interfering user. It may be determined whether the identified influencing user is currently accessing the file directory of the network disk file, i.e. whether the file is accessed to the first layer folder in which the file is located, and if such influencing user exists, it may be regarded as an interfering user.
By adopting the method, compared with the traditional method of determining the interfered user mode by searching the user list of the file directory of the network disk file, the searching range can be reduced by the metadata, so that the file directory which affects the current access of the user after the range is reduced is judged, the searching data volume can be greatly reduced, and the searching efficiency is improved.
And 140, when the interference users exist, generating corresponding directory file updating information for each interference user.
The viewing content of each interfering user needs to be updated, and for example, because the display information that each interfering user may see after changing is inconsistent, corresponding directory file update information needs to be generated for each interfering user. The directory file updating information is the display information of all files which can be displayed under the directory after updating.
Illustratively, the generating the corresponding directory file update information for each interfering user may include: acquiring directory file display information before changing operation, determining changing file ID in the directory file display information according to the changing operation, and determining visible attribute of the changing file according to the changing operation; and generating corresponding directory file updating information according to the information of the new or deleted changed file in the directory file display information of the visible attribute.
And step 150, pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information.
When determining that the file directory where the network disk file is accessed by the user is influenced, updating the file directory information of the user is required. After generating the corresponding directory file update information, the directory file update information may be correspondingly sent to an access terminal of the interfering user, for example: a mobile terminal or a PC. The mobile terminal or PC receives the catalog file updating information through the characteristic interface, refreshes the catalog file updating information, loads the catalog file updating information and achieves display of the updated catalog file information.
According to the embodiment, through obtaining the changing operation of the network disk file, the corresponding network disk file ID is determined according to the changing operation; searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation; determining at least one influencing user using the modified metadata and determining whether an interfering user is present, the interfering user comprising: the influence users of the file catalogue of the current access network disk file; when interference users exist, generating corresponding directory file updating information for each interference user; pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information. The display state of the displayed network disk file is immediately and timely changed according to the change operation, so that a user can timely know the file state in the accessed folder, and invalid operation on the changed network disk file is avoided.
Example two
Fig. 2 is a flowchart of a method for updating a network disk file state according to a second embodiment of the present invention. The present embodiment optimizes based on the above embodiment, in this embodiment, pushing the directory file update information to the access terminal of the interfering user is specifically optimized as follows: pushing the directory file update information through a file information interface by utilizing websocket. And the following steps are added: judging whether websocket handshake connection is established with the access terminal.
Correspondingly, the method for updating the network disk file state provided by the embodiment specifically comprises the following steps:
step 210, determining whether a websocket handshake connection is established with the access terminal.
WebSocket is a tcp-based protocol, which realizes full duplex communication between the browser and the server, and can better save server resources and bandwidth and achieve the purpose of real-time communication. Through a handshake mechanism, a tcp-like connection can be established between the client and the server, thereby facilitating communication between them. In this embodiment, the network disk server may establish a websocket handshake connection with the access terminal, so as to implement a manner of simulating a long connection.
Step 220, obtaining a change operation of the network disk file, and determining a corresponding network disk file ID according to the change operation.
Step 230, searching the metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation.
Step 240, determining at least one influencing user using the modified metadata, and determining whether an interfering user exists, the interfering user comprising: the current access to the file directory of the network disk file affects the user.
And step 250, when the interference users exist, generating corresponding directory file updating information for each interference user.
And 260, pushing the directory file updating information to the access terminal of the interfering user through a file information interface by utilizing the websocket so that the access terminal is refreshed immediately, and displaying the updated directory file information.
When a long connection user requests the server for the first time, the server judges whether information which can be sent to the browser exists or not at present, and if the information does not exist, the server blocks the browser. Until the server finds the content, the content is returned to those blocked requests, and the connection is disconnected. The client receives the returned content from the server at the first time, and immediately requests for the second time after processing, and then blocks the content. By using the method, the directory file update information can be pushed to the access terminal rapidly, and the purpose of refreshing and displaying the updated directory file information rapidly and timely is realized.
The embodiment specifically optimizes the pushing of the directory file update information to the access terminal of the interfering user by: pushing the directory file update information through a file information interface by utilizing websocket. And the following steps are added: judging whether websocket handshake connection is established with the access terminal. By utilizing the characteristic that websocket can quickly communicate with a terminal based on event triggering after handshake connection is established, updated information can be quickly sent to an access terminal, and then the refresh rate is improved.
Example III
Fig. 3 is a flowchart illustrating a method for updating a network disk file state according to a third embodiment of the present invention. The present embodiment is optimized based on the above embodiment, and in this embodiment, the method further includes the following steps: judging whether an interference user currently carries out sharing operation on the changed file or not; when the operation is determined to be the sharing operation, determining whether the change operation is a renaming operation or a transferring operation; and optimizing the generated directory file update information specifically as: when renaming or transferring operation is performed, generating kept directory file updating information, wherein the kept directory file updating information comprises copy file information corresponding to changed file information, so that the kept directory file updating information is consistent with original directory file information; and setting binding relation between the copy file information and the change file information.
Correspondingly, the method for updating the network disk file state provided by the embodiment specifically comprises the following steps:
step 310, obtaining a change operation to the network disk file, and determining a corresponding network disk file ID according to the change operation.
Step 320, searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation.
Step 330, determining at least one influencing user using the modified metadata, and determining whether an interfering user exists, the interfering user comprising: the current access to the file directory of the network disk file affects the user.
Step 340, determining whether the interfering user currently performs the sharing operation for the changed file.
In this embodiment, since the change operation of other users may conflict with the operation of the user, the operation currently performed by the user cannot be performed. Therefore, in this embodiment, the adjustment may be flexibly performed according to the conflict situation of the change operation, so as to reduce the interference to the user operation as much as possible. Firstly, determining whether the interference user currently carries out sharing operation on the changed file according to the operation condition of the interference user. The sharing operation may be an operation of sharing the change file to the enterprise user or the external user.
Step 350, when the sharing operation is determined, determining whether the change operation is a rename or transfer operation.
If the operation is determined to be the sharing operation, whether the operation of changing reduces the operation authority of the interference user on the file change or not needs to be checked. If the authority operation is not involved, the authority operation needs to be reasonably processed, so that the conflict is avoided. Thus, it is desirable to determine whether a change operation is a rename or transfer operation.
Step 360, generating kept directory file updating information when renaming or transferring, wherein the kept directory file updating information comprises copy file information corresponding to changed file information, so that the kept directory file updating information is consistent with original directory file information.
If the change operation is renamed or transferred, the disturbing user still has corresponding authority to change the file, so that the user is allowed to continue to perform the sharing operation. Thus, in the present embodiment, the holding directory file update information can be generated. The holding directory file update information may generate a copy of the information for the change file. So that at the time of updating, the change file can still be displayed. And the sharing operation by the interference user is facilitated.
And 370, setting binding relation between the copy file information and the change file information.
Because the change file information includes the current storage path of the change file, the copy file information and the change file information need to be set in a binding relationship, so that sharing operation can be conveniently completed according to the corresponding storage path.
And step 380, pushing the update information of the holding directory file to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated information of the holding directory file.
The embodiment adds the following steps: judging whether an interference user currently carries out sharing operation on the changed file or not; when the operation is determined to be the sharing operation, determining whether the change operation is a renaming operation or a transferring operation; and optimizing the generated directory file update information specifically as: when renaming or transferring operation is performed, generating kept directory file updating information, wherein the kept directory file updating information comprises copy file information corresponding to changed file information, so that the kept directory file updating information is consistent with original directory file information; and setting binding relation between the copy file information and the change file information. The sharing method and the sharing device can optimize display adjustment aiming at sharing conditions, and avoid sharing failure caused by non-permission change.
In a preferred implementation of this embodiment, the method may further comprise the steps of: and adding refreshing information into the maintained directory file updating information so that the access terminal refreshes after the sharing operation is completed, and displaying updated directory file information according to the copy information in the maintained directory file updating information. After the sharing operation is completed, the interference user terminal automatically refreshes, so that the interference user can quickly know that the file is changed. The user can know the file state in the accessed folder in time, and invalid operation on the changed network disk file is avoided.
Example IV
Fig. 4 is a schematic structural diagram of a device for updating a status of a network disk file according to a fourth embodiment of the present invention, as shown in fig. 4, where the device includes:
an obtaining module 410, configured to obtain a change operation on a network disk file, and determine a corresponding network disk file ID according to the change operation;
the searching module 420 is configured to search metadata of the network disk file according to the network disk file ID, and modify the metadata according to the change operation;
a determining module 430 determines at least one influencing user using the modified metadata and determines whether an interfering user exists, the interfering user comprising: the influence users of the file catalogue of the current access network disk file;
the generation module 440 generates corresponding directory file update information for each interference user when the interference user exists;
and the pushing module 450 is configured to push the directory file update information to an access terminal of an interfering user, so that the access terminal immediately refreshes the directory file and displays the updated directory file information.
According to the updating device of the network disk file state, the network disk file ID corresponding to the network disk file is determined according to the changing operation by acquiring the changing operation of the network disk file; searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation; determining at least one influencing user using the modified metadata and determining whether an interfering user is present, the interfering user comprising: the influence users of the file catalogue of the current access network disk file; when interference users exist, generating corresponding directory file updating information for each interference user; pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information. When the file is changed, the influence user accessing the directory where the file is located is determined, directory file updating information is generated according to the modification information, and the directory file updating information is pushed to the terminals of other users which access simultaneously, so that the terminals of the other users can refresh the current directory file interface immediately, and the updated directory file information is displayed. The display state of the displayed network disk file is immediately and timely changed according to the change operation, so that a user can timely know the file state in the accessed folder, and invalid operation on the changed network disk file is avoided.
On the basis of the above embodiments, the generating module includes:
an acquisition unit, configured to acquire directory file display information before a change operation, and determine a change file ID in the directory file display information according to the change operation;
the determining unit is used for determining the visible attribute of the change file according to the change operation;
and the generation unit is used for generating corresponding directory file updating information according to the information that the visual attribute is newly added or deleted in the directory file display information.
On the basis of the above embodiments, the changing operation includes:
move, rename, rights change, and delete operations.
On the basis of the above embodiments, the pushing module includes:
and the pushing unit is used for pushing the directory file updating information through the file information interface by utilizing the websocket.
On the basis of the above embodiments, the push module further includes:
and the judging unit is used for judging whether websocket handshake connection is established with the access terminal.
On the basis of the above embodiments, the device further includes:
the sharing operation judging module is used for judging whether the interference user performs sharing operation on the changed file currently;
the operation determining module is used for determining whether the change operation is a renaming operation or a transferring operation when the change operation is determined to be a sharing operation;
correspondingly, the generating module comprises:
a holding catalog generating unit, configured to generate holding catalog file updating information when renaming or transferring, where the holding catalog file updating information includes copy file information corresponding to changed file information, so that the holding catalog file updating information is consistent with original catalog file information;
and the setting unit is used for setting the binding relation between the copy file information and the change file information.
On the basis of the above embodiments, the device further includes:
and the refreshing module is used for setting refreshing information in the updating information of the maintained directory file so that the access terminal refreshes after the sharing operation is completed, and displaying updated directory file information according to the copy information in the updating information of the maintained directory file.
The updating device of the network disk file state provided by the embodiment of the invention can execute the updating method of the network disk file state provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example five
Fig. 5 is a schematic structural diagram of a mesh disc according to a fifth embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary network disk 12 suitable for use in implementing embodiments of the present invention. The net tray 12 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the network disk 12 is embodied in the form of a general purpose computing device. Components of the net tray 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The network disk 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by the network disk 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The network disk 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The network disk 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the network disk 12, and/or any devices (e.g., network card, modem, etc.) that enable the network disk 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the network disk 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, network adapter 20 communicates with other modules of network disk 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the network disk 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the update method of the network disk file status provided by the embodiment of the present invention.
Example six
A sixth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for updating a network disk file state according to any one of the above embodiments.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The method for updating the network disk file state is characterized by comprising the following steps of:
acquiring a change operation of a network disk file, and determining a corresponding network disk file ID according to the change operation;
searching metadata of the network disk file according to the network disk file ID, and modifying the metadata according to the change operation;
determining at least one influencing user using the modified metadata and determining whether an interfering user is present, the interfering user comprising: the influence users of the file catalogue of the current access network disk file;
when interference users exist, generating corresponding directory file updating information for each interference user;
pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information.
2. The method of claim 1, wherein said generating corresponding directory file update information for each of said interfering users comprises:
acquiring directory file display information before changing operation, and determining a changed file ID in the directory file display information according to the changing operation;
determining the visible attribute of the change file according to the change operation;
and generating corresponding directory file updating information according to the information of the new or deleted changed file in the directory file display information of the visible attribute.
3. The method of claim 1, wherein the altering operation comprises:
move, rename, rights change, and delete operations.
4. The method of claim 1, wherein pushing the directory file update information to the access terminal of the interfering user comprises:
pushing the directory file update information through a file information interface by utilizing websocket.
5. The method according to claim 4, wherein the method further comprises:
judging whether websocket handshake connection is established with the access terminal.
6. The method of claim 5, wherein the method further comprises:
judging whether an interference user currently carries out sharing operation on the changed file or not;
when the operation is determined to be the sharing operation, determining whether the change operation is a renaming operation or a transferring operation;
the generating the corresponding directory file update information includes:
when renaming or transferring operation is performed, generating kept directory file updating information, wherein the kept directory file updating information comprises copy file information corresponding to changed file information, so that the kept directory file updating information is consistent with original directory file information;
and setting binding relation between the copy file information and the change file information.
7. The method of claim 6, wherein the method further comprises:
and adding refreshing information into the maintained directory file updating information so that the access terminal refreshes after the sharing operation is completed, and displaying updated directory file information according to the copy information in the maintained directory file updating information.
8. An updating device for a network disk file state, comprising:
the acquisition module is used for acquiring the change operation of the network disk file and determining the corresponding network disk file ID according to the change operation;
the searching module is used for searching the metadata of the network disk file according to the network disk file ID and modifying the metadata according to the change operation;
a judging module, configured to determine at least one influencing user by using the modified metadata, and judge whether there is an interfering user, where the interfering user includes: the influence users of the file catalogue of the current access network disk file;
the generation module is used for generating directory file updating information when the user is influenced whether to access the directory of the network disk file currently;
and the pushing module is used for pushing the directory file updating information to the access terminal of the interfering user so that the access terminal can refresh immediately and display the updated directory file information.
9. A net tray, the net tray comprising:
one or more processors;
a storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for updating a network disk file state according to any one of claims 1-7.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of updating a network disk file state of any of claims 1-7.
CN202310300581.XA 2023-03-27 2023-03-27 Method and device for updating network disk file state, network disk and storage medium Active CN116010364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310300581.XA CN116010364B (en) 2023-03-27 2023-03-27 Method and device for updating network disk file state, network disk and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310300581.XA CN116010364B (en) 2023-03-27 2023-03-27 Method and device for updating network disk file state, network disk and storage medium

Publications (2)

Publication Number Publication Date
CN116010364A CN116010364A (en) 2023-04-25
CN116010364B true CN116010364B (en) 2023-08-04

Family

ID=86037745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310300581.XA Active CN116010364B (en) 2023-03-27 2023-03-27 Method and device for updating network disk file state, network disk and storage medium

Country Status (1)

Country Link
CN (1) CN116010364B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037008A (en) * 2012-12-24 2013-04-10 珠海金山办公软件有限公司 Authority management method and system of synchronous network disk
CN103365996A (en) * 2013-07-12 2013-10-23 北京奇虎科技有限公司 File management and processing method, device and system
WO2014063610A1 (en) * 2012-10-23 2014-05-01 深圳企业云科技有限公司 Local text interaction system and text management method therefor
CN106021327A (en) * 2016-05-06 2016-10-12 南开大学 A method for constructing a network disk system supporting simultaneous reading and writing of multiple users
CN107423370A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 The method, apparatus and electronic equipment that a kind of shared file is shown
CN107577718A (en) * 2017-08-10 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system of the file synchronization of Dropbox server and terminal
CN109684867A (en) * 2018-11-20 2019-04-26 深圳供电局有限公司 A kind of control method, the apparatus and system of network disk file collaboration and access
CN110069454A (en) * 2017-09-11 2019-07-30 中兴通讯股份有限公司 A kind of network file management method, terminal and computer readable storage medium
CN110865983A (en) * 2019-09-27 2020-03-06 视联动力信息技术股份有限公司 File sharing method and device based on network disk link
CN113988025A (en) * 2021-12-28 2022-01-28 天津联想协同科技有限公司 Method, device and system for sending, transmitting and receiving cooperative processing document
CN114329366A (en) * 2022-03-14 2022-04-12 天津联想协同科技有限公司 Network disk file control method and device, network disk and storage medium
CN114356872A (en) * 2021-12-25 2022-04-15 南京欧珀软件科技有限公司 File sharing method of cross-terminal equipment and related product
CN114417390A (en) * 2022-03-30 2022-04-29 天津联想协同科技有限公司 Method and device for synchronizing data of network disk organization account, network disk and storage medium
CN115167785A (en) * 2022-09-06 2022-10-11 天津联想协同科技有限公司 Label-based network disk file management method and device, network disk and storage medium
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium
CN115774700A (en) * 2022-11-17 2023-03-10 深圳开鸿数字产业发展有限公司 File sharing method and device, computer equipment and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014063610A1 (en) * 2012-10-23 2014-05-01 深圳企业云科技有限公司 Local text interaction system and text management method therefor
CN103037008A (en) * 2012-12-24 2013-04-10 珠海金山办公软件有限公司 Authority management method and system of synchronous network disk
CN103365996A (en) * 2013-07-12 2013-10-23 北京奇虎科技有限公司 File management and processing method, device and system
CN106021327A (en) * 2016-05-06 2016-10-12 南开大学 A method for constructing a network disk system supporting simultaneous reading and writing of multiple users
CN107423370A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 The method, apparatus and electronic equipment that a kind of shared file is shown
CN107577718A (en) * 2017-08-10 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system of the file synchronization of Dropbox server and terminal
CN110069454A (en) * 2017-09-11 2019-07-30 中兴通讯股份有限公司 A kind of network file management method, terminal and computer readable storage medium
CN109684867A (en) * 2018-11-20 2019-04-26 深圳供电局有限公司 A kind of control method, the apparatus and system of network disk file collaboration and access
CN110865983A (en) * 2019-09-27 2020-03-06 视联动力信息技术股份有限公司 File sharing method and device based on network disk link
CN114356872A (en) * 2021-12-25 2022-04-15 南京欧珀软件科技有限公司 File sharing method of cross-terminal equipment and related product
CN113988025A (en) * 2021-12-28 2022-01-28 天津联想协同科技有限公司 Method, device and system for sending, transmitting and receiving cooperative processing document
CN114329366A (en) * 2022-03-14 2022-04-12 天津联想协同科技有限公司 Network disk file control method and device, network disk and storage medium
CN114417390A (en) * 2022-03-30 2022-04-29 天津联想协同科技有限公司 Method and device for synchronizing data of network disk organization account, network disk and storage medium
CN115167785A (en) * 2022-09-06 2022-10-11 天津联想协同科技有限公司 Label-based network disk file management method and device, network disk and storage medium
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium
CN115774700A (en) * 2022-11-17 2023-03-10 深圳开鸿数字产业发展有限公司 File sharing method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于事件机制的同步共享网盘的研究与实现;何晨;《中国优秀硕士学位论文全文数据库信息科技辑》(第3期);全文 *

Also Published As

Publication number Publication date
CN116010364A (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US10848557B2 (en) Server-side selective synchronization
EP3408744B1 (en) Providing access to a hybrid application offline
US20230090977A1 (en) Synchronized content library
US20180278684A1 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
CA2717345C (en) Inserting a multimedia file through a web-based desktop productivity application
JP2016529599A (en) Content clipboard synchronization
WO2014105373A1 (en) Systems and methods for automatic synchronization of recently modified data
US11816128B2 (en) Managing content across discrete systems
US20160179789A1 (en) Content localization using fallback translations
WO2019047976A1 (en) Network file management method, terminal and computer readable storage medium
US20170185626A1 (en) Embedded folder views
US20230101774A1 (en) Techniques for performing clipboard-to-file paste operations
JP6470126B2 (en) Method, computer apparatus, and program for creating file variant
CN116010364B (en) Method and device for updating network disk file state, network disk and storage medium
US8990265B1 (en) Context-aware durability of file variants
JP2023107766A (en) Synchronizing external location
JP2023547439A (en) Intent tracking for asynchronous behavior
CN116126248A (en) Renaming processing method, server, client and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant