File Processing Method, Device, Storage Medium, and Electronic Device

By centrally saving the physical files and index information of the template files in the cloud disk system, the problem of repeated storage of template files in the cloud disk system is solved, and efficient resource utilization and cost reduction are achieved.

CN115757283BActive Publication Date: 2025-07-08E-SURFING DIGITAL LIFE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211502125.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-07-08
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

The storage resources are wasted due to the storage of duplicate template files in the cloud disk system, and the existing technology has not been effectively solved.

Method used

In the cloud disk system, only one copy of the physical file of the template file is saved in the resource pool, and the file index information is saved in the system database. The template file is processed through the file index information. The user obtains the file adaptation characteristics when logging in, determines the matching template file list, and feedbacks the physical file based on the index.

Benefits of technology

It effectively avoids repeated saving of template files in cloud disk systems, frees up a large number of storage resources, improves system processing efficiency and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115757283B_ABST
    Figure CN115757283B_ABST
Patent Text Reader

Abstract

The present invention provides a file processing method, device, storage medium and electronic device, which are applied to a cloud disk system. The cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each template file, and the system database stores the file index information of each template file; obtain the file adaptation characteristics of the user; based on the file adaptation characteristics and the respective file index information in the system database, determine the respective template files that match the user; generate a template file list based on the determined respective template files; obtain the file query instruction fed back by the user; determine the target template file based on the file index identifier in the file query instruction, and determine the physical file identifier of the target template file; feedback the physical file corresponding to the physical file identifier in the resource pool to the user. The present invention can realize the processing of template files without storing the template files in the user's own cloud disk, avoid storing duplicate template files in the cloud disk system, and avoid wasting resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet cloud disks, and particularly to a file processing method, an apparatus, a storage medium, and an electronic device. Background Art

[0002] With the development of Internet technology, products applying cloud technology have begun to be used in people's daily lives. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network to achieve data calculation, storage, processing, and sharing.

[0003] Among various cloud products, cloud disks are widely used by people. When a provider provides cloud disk services to people, some template files will be provided for each user. To ensure that each user can process these template files, these template files and related information will be saved in each user's own cloud disk. With the growth of the number of users of the cloud disk system, this way of processing template files has led to a large number of duplicate template files being saved in the cloud disk system, wasting a large amount of resources of the cloud disk system. Summary of the Invention

[0004] In view of this, the present invention provides a file processing method, an apparatus, a storage medium, and an electronic device. Applying this solution, there is no need to save the relevant data of the template files in each user's cloud disk. Only the physical files of each pre-constructed template file need to be saved in the resource pool of the cloud disk system and the file index information of each template file needs to be saved in the system database. Then, the file index information of the template file and the physical file identifier are used to implement the processing of the template file. Thus, the data of the template file only needs to be saved once in the cloud disk system, effectively avoiding the saving of duplicate template files in the cloud disk system and effectively releasing a large amount of storage resources of the cloud disk system.

[0005] To achieve the above object, the embodiments of the present invention provide the following technical solutions:

[0006] A file processing method is applied to a cloud disk system. The cloud disk system includes a resource pool and a system database. The resource pool saves the physical files of each pre-constructed template file, and the system database saves the file index information of each template file. The method includes:

[0007] When a user logs in to the cloud disk system, obtain the file adaptation characteristics of the user;

[0008] Based on the file adaptation characteristics and the file index information in the system database, determine each template file that matches the user;

[0009] Generate a template file list based on each template file that matches the user;

[0010] Present the list of template files to the user;

[0011] Obtain the file query instruction fed back by the user based on the list of template files, and obtain the file index identifier in the file query instruction;

[0012] Based on the file index identifier, determine the target template file among each template file that matches the user, and determine the physical file identifier of the target template file;

[0013] Feed back the physical file corresponding to the physical file identifier in the resource pool to the user.

[0014] For the above method, optionally, the determining of each template file that matches the user based on the file adaptation feature and each file index information in the system database includes:

[0015] Based on each file index information, determine the applicable conditions of each template file;

[0016] For each template file, determine whether the file adaptation feature meets the applicable conditions of the template file;

[0017] If the file adaptation feature meets the applicable conditions of the template file, determine that the template file matches the user;

[0018] If the file adaptation feature does not meet the applicable conditions of the template file, determine that the template file does not match the user.

[0019] For the above method, optionally, it further includes:

[0020] Receive the operation instruction of the target template file sent by the user;

[0021] Copy the target template file to obtain a copy file of the target template file;

[0022] Execute the operation corresponding to the operation instruction on the copy file to obtain the private file of the user;

[0023] Generate the first index information of the private file, and save both the private file and the first index information of the private file to the user's cloud disk.

[0024] For the above method, optionally, after executing the presenting of the list of template files to the user, it further includes:

[0025] Obtain the second index information of each file saved in the user's cloud disk;

[0026] Generate a personal file list based on each of the second index information;

[0027] Display the personal file list to the user.

[0028] Optionally, the above method further includes:

[0029] Obtain the login verification information sent by the user;

[0030] Authenticate the user based on the login verification information;

[0031] When the user passes the authentication, determine that the user logs in to the cloud disk system.

[0032] A file processing device is applied to a cloud disk system, the cloud disk system includes a resource pool and a system database, the resource pool stores physical files of each pre-constructed template file, and the system database stores file index information of each template file. The device includes:

[0033] A first acquisition unit, configured to acquire the file adaptation characteristics of the user when the user logs in to the cloud disk system;

[0034] A first determination unit, configured to determine each template file matching the user based on the file adaptation characteristics and each file index information in the system database;

[0035] A first generation unit, configured to generate a template file list based on each template file matching the user;

[0036] A first display unit, configured to display the template file list to the user;

[0037] A second acquisition unit, configured to acquire the file query instruction fed back by the user based on the template file list, and acquire the file index identifier in the file query instruction;

[0038] A second determination unit, configured to determine a target template file from each template file matching the user based on the file index identifier, and determine the physical file identifier of the target template file;

[0039] A feedback unit, configured to feedback the physical file corresponding to the physical file identifier in the resource pool to the user.

[0040] Optionally, for the above device, the first determination unit includes:

[0041] A first determination subunit, configured to determine the applicable condition of each template file based on each file index information;

[0042] A judgment subunit, configured to judge, for each of the template files, whether the file adaptation feature meets the applicable conditions of the template file;

[0043] A second determination subunit, configured to determine that the template file matches the user if the file adaptation feature meets the applicable conditions of the template file;

[0044] A third determination subunit, configured to determine that the template file does not match the user if the file adaptation feature does not meet the applicable conditions of the template file.

[0045] For the above device, optionally, it further includes:

[0046] A receiving unit, configured to receive the operation instruction of the target template file sent by the user;

[0047] A first obtaining unit, configured to copy the target template file to obtain a copy file of the target template file;

[0048] A second obtaining unit, configured to perform an operation corresponding to the operation instruction on the copy file to obtain the private file of the user;

[0049] A saving unit, configured to generate first index information of the private file, and save both the private file and the first index information of the private file to the user's cloud disk.

[0050] For the above device, optionally, it further includes:

[0051] A third obtaining unit, configured to obtain second index information of each file saved in the user's cloud disk;

[0052] A second generating unit, configured to generate a personal file list based on the respective second index information;

[0053] A second displaying unit, configured to display the personal file list to the user.

[0054] For the above device, optionally, it further includes:

[0055] A fourth obtaining unit, configured to obtain the login verification information sent by the user;

[0056] A verification unit, configured to authenticate the user based on the login verification information;

[0057] A third determination unit, configured to determine that the user logs in to the cloud disk system when the user passes the authentication.

[0058] A storage medium, the storage medium includes stored instructions, wherein when the instructions are running, the device where the storage medium is located is controlled to execute the file processing method as described above.

[0059] An electronic device, including a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the file processing method as described above.

[0060] Compared with the prior art, the present invention has the following advantages:

[0061] The present invention provides a file processing method, device, storage medium and electronic device, which are applied to a cloud disk system. The cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each pre-constructed template file, and the system database stores the file index information of each template file; when a user logs in to the cloud disk system, the file adaptation characteristics of the user are obtained; based on the file adaptation characteristics and the file index information in the system database, each template file matched with the user is determined; a template file list is generated based on each template file matched with the user; the template file list is displayed to the user; a file query instruction feedback by the user based on the template file list is obtained, and the file index identifier in the file query instruction is obtained; based on the file index identifier, a target template file is determined from each template file matched with the user, and the physical file identifier of the target template file is determined; the physical file corresponding to the physical file identifier in the resource pool is fed back to the user. Using the file index information in the system database to determine the template file matched with the user, and based on the file index identifier in the file query instruction feedback by the user to determine the physical file identifier, and feeding back the physical file of the template file corresponding to the physical file identifier in the resource pool to the user, thereby realizing the processing of the template file by the user. This processing method does not need to save the relevant information of the template file in the user's own cloud disk, but centrally stores the template file in the resource pool and centrally stores the file index information of the template file in the system database, thereby effectively avoiding the storage of duplicate template files in the cloud disk system, effectively releasing a large amount of storage resources of the cloud disk system, and effectively avoiding the waste of resources of the cloud disk system. Description of the Drawings

[0062] 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 the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0063] Figure 1Method flowchart of a file processing method provided by an embodiment of the present invention;

[0064] Figure 2 Method flowchart of a method for a user to log in to a system provided by an embodiment of the present invention;

[0065] Figure 3 Method flowchart of a method for determining various template files matching a user provided by an embodiment of the present invention;

[0066] Figure 4 Method flowchart of a method for operating a viewed template file provided by an embodiment of the present invention;

[0067] Figure 5 Structural schematic diagram of a file processing device provided by an embodiment of the present invention;

[0068] Figure 6 Structural schematic diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0069] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. 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.

[0070] In this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0071] The present invention can be used in many general or special computing device environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, and so on.

[0072] The present invention can be applied to a cloud disk system constructed using a computer terminal or a distributed computing device. Preferably, the cloud disk system includes, but is not limited to, a resource pool and a system database. The resource pool is used to store the physical files of each pre-constructed template file, and the system database is used to store the file index information of each template file. It should be noted that in addition to the resource pool and the system database in the cloud disk system, there are also a registration database for storing user registration information, cloud disks allocated to each user, and other modules or databases, which will not be elaborated here one by one.

[0073] Referring to Figure 1 , which is a flowchart of a file processing method provided by an embodiment of the present invention, and is specifically described as follows:

[0074] S101. When a user logs in to the cloud disk system, obtain the file adaptation characteristics of the user.

[0075] To improve the security of the cloud disk system usage environment, the cloud disk system requires users to log in to use.

[0076] Referring to Figure 2 , which is a flowchart of a method for a user to log in to the system provided by an embodiment of the present invention, and is specifically described as follows:

[0077] S201. Obtain the login verification information sent by the user.

[0078] When a user wants to use the cloud disk, the user inputs login verification information to the cloud disk system. The login verification information includes, but is not limited to, account information and verification code and other information. Among them, the account information includes, but is not limited to, personal accounts and account passwords.

[0079] Preferably, the verification code is dynamically changed. When the cloud disk system receives a login request sent by the user, it will randomly generate a verification code and then feedback the verification code to the user. When the user inputs personal account and other information, the user needs to input the received verification code.

[0080] S202. Authenticate the user based on the login verification information and determine whether the user passes the authentication; when the user passes the authentication, execute S203; when the user does not pass the authentication, execute S204.

[0081] When authenticating the user, it can first be determined whether there is a registered account information in the cloud disk system that is the same as the account information in the login verification information. If it exists, then it is determined whether the verification code input by the user is the same as the verification code feedback by the cloud disk system to the user. If they are the same, it is determined that the user passes the authentication. If they are not the same, it is determined that the verification code input by the user is incorrect and the user does not pass the authentication.

[0082] When there is no registered account information in the cloud disk system that is the same as the account information in the login verification information, it is determined that the user fails the identity verification.

[0083] Preferably, the registered account information includes the account assigned by the cloud disk system to the user during registration and the account password set by the user.

[0084] S203. Determine that the user logs in to the cloud disk system.

[0085] S204. The user fails to log in to the cloud disk system.

[0086] Furthermore, the user can only operate on the data in the cloud disk system after logging in to the cloud disk system, which can ensure the security of the data in the cloud disk system and reduce the security risk of the cloud disk system.

[0087] It should be noted that the file adaptation features include but are not limited to information such as user level and user's affiliated region. The user level can be platinum, gold, or ordinary; the region can be specific provinces and cities.

[0088] S102. Based on the file adaptation features and each file index information in the system database, determine each template file that matches the user.

[0089] Refer to Figure 3 , which is the flowchart of the method for determining each template file that matches the user provided by the embodiment of the present invention, and is specifically described as follows:

[0090] S301. Based on each file index information, determine the applicable conditions of each template file.

[0091] Parse each file index information, so as to obtain the applicable conditions of each template file from each file index information.

[0092] The file index information includes but is not limited to data such as file index identifier, file name, directory, MD5 value, validity period, applicable conditions, etc.

[0093] The template file refers to a file that a group of users with the same characteristics have simultaneously within a certain period of time. It can have timeliness, that is, the template file can only be loaded by users within the validity period. The template file can be any type of file, such as document types: word, txt, etc., picture types: jpg, png, etc., media types: mp4, avi, etc.; furthermore, the validity period can be the effective time of the template file in the cloud disk system. Specifically, if the validity period of the template file in the cloud disk system is 7 days, then within 7 days from the release of the template file to the cloud disk system, users who meet the usage conditions of the template file can call the file.

[0094] Preferably, specific conditions for applying the template conditions are set in the applicable conditions. For example, the user's level, the user's region, etc. are specified. These conditions can be used in combination or individually. By setting the applicable conditions for each template file, the target users for the template file can be specified. For example, when the template file is a user operation guide document, it can be set to be only available to new users. By setting the expiration date and applicable conditions for the template file, different template files can be provided to different types of users at different times.

[0095] Preferably, the expiration date of the template file can be set in the applicable conditions.

[0096] S302. For each template file, determine whether the file adaptation feature meets the applicable conditions of the template file; if the file adaptation feature meets the applicable conditions of the template file, execute S303; if the file adaptation feature does not meet the applicable conditions of the template file, execute S304.

[0097] For each template file, first determine whether the template file is within the expiration date. If the template file is within the expiration date, then determine the condition content set in the applicable conditions, such as the level of the users who can use the template file, and / or the region of the users who can use the template file, etc.

[0098] When determining whether the file adaptation feature meets the applicable conditions of the template file, it can also be based on the file adaptation feature to determine whether the user meets the applicable conditions of the template file; for example, if the applicable conditions specify the user level and region of the template file, then it is necessary to determine whether the user level in the file adaptation feature meets the level set in the applicable conditions, and determine whether the region in the file adaptation feature conforms to the region in the applicable conditions. When both are met, it can be determined that the file adaptation feature meets the usage conditions of the template file, that is, it can be determined that the user meets the applicable conditions of the template file.

[0099] S303. Determine that the template file matches the user.

[0100] S304. Determine that the template file does not match the user.

[0101] Thus, the template files that match the user can be screened out from each template file. Further, the user can call the template files that match them.

[0102] S103. Generate a template file list based on the template files that match the user.

[0103] The template file list contains the file names of each template file that matches the user.

[0104] S104. Display the template file list to the user.

[0105] Feedback the template file list to the user for display on the terminal used by the user.

[0106] In the method provided by the embodiments of the present invention, after the template file list is displayed to the user and before S105 is executed, the second index information of each file saved in the user's cloud disk can also be obtained; generate a personal file list based on each second index information; display the personal file list to the user; thus, each file saved in the user's own cloud disk can be displayed to the user. Preferably, the second index information includes the file name, index identifier, etc. of each file in the cloud disk.

[0107] S105. Obtain the file query instruction fed back by the user based on the template file list, and obtain the file index identifier in the file query instruction.

[0108] When the user has a need to query a certain template file in the template file list, the template file to be queried can be selected from the template file list, thereby generating a file query instruction, parsing the file query instruction, and obtaining the file index identifier in the file query instruction; the file index identifier in the file query instruction is the file index identifier of the template file that the user needs to query.

[0109] S106. Determine the target template file among the template files matching the user, and determine the physical file identifier of the target template file.

[0110] For each template file matching the user, match the file index identifier in the file index information of the template file with the file index identifier in the file query instruction. When the file index identifier in the file index information of the template file is the same as the file index identifier in the file query instruction, determine that the template file is the target template file; otherwise, determine that the template file is not the target template file.

[0111] After determining the target template file, the physical file identifier of the target template file can be determined according to the file index identifier.

[0112] It should be noted that each template file has a unique file index identifier, and each file index identifier has a unique physical file identifier; the physical file identifier is used to obtain the physical file of the template file that the user needs to query.

[0113] S107. Feedback the physical file corresponding to the physical file identifier in the resource pool to the user.

[0114] Determine the physical file corresponding to the physical file identifier in the resource pool and feedback the physical file to the user, thereby completing the query of the template file.

[0115] The template file provided by the present invention has a unique file index identifier and a unique physical file identifier in the cloud disk system. The file index identifier and the physical file identifier are in one-to-one correspondence. The physical file identifier is used to find the physical file of the template file, and the specific content of the template file is saved in the physical file. The template file is a public file and can be read by multiple people simultaneously. During the process of each user reading the template file, the user obtains the file index identifier, then determines the physical file identifier corresponding to the file index identifier, and uses the physical file identifier to obtain the corresponding physical file, thereby completing the viewing of the template file.

[0116] The method provided by the embodiment of the present invention is applied to a cloud disk system. The cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each pre-constructed template file, and the system database stores the file index information of each template file. When a user logs in to the cloud disk system, the file adaptation characteristics of the user are obtained. Based on the file adaptation characteristics and the file index information in the system database, the template files that match the user are determined. A template file list is generated based on the template files that match the user. The template file list is displayed to the user. A file query instruction fed back by the user based on the template file list is obtained, and the file index identifier in the file query instruction is obtained. Based on the file index identifier, the target template file is determined among the template files that match the user, and the physical file identifier of the target template file is determined. The physical file corresponding to the physical file identifier in the resource pool is fed back to the user. Using the file index information in the system database to determine the template files that match the user, and determining the physical file identifier based on the file index identifier in the file query instruction fed back by the user, and feeding back the physical file of the template file corresponding to the physical file identifier in the resource pool to the user, thereby realizing the processing of the template file by the user. This processing method does not need to save the relevant information of the template file in the user's own cloud disk, but centrally stores the template files in the resource pool and centrally stores the file index information of the template files in the system database, thereby effectively avoiding the storage of duplicate template files in the cloud disk system, effectively releasing a large amount of storage resources in the cloud disk system, and effectively avoiding wasting the resources of the cloud disk system.

[0117] Applying the method provided by the present invention, the template file becomes a public file, and all users in the cloud disk system can process the template file, and multiple people can view the document simultaneously.

[0118] In the method provided by the embodiment of the present invention, after the user views the template file, the user can also perform other operations on the viewed template file. Refer to Figure 4 , which is the flowchart of the method for operating the viewed template file provided by the embodiment of the present invention, and the specific description is as follows:

[0119] S401. Receive an operation instruction of a target template file sent by the user.

[0120] Preferably, the operation instruction may be an instruction for one of the operations such as modification, transfer and storage, copying, moving, and sharing.

[0121] S402. Copy the target template file to obtain a copy file of the target template file.

[0122] S403. Perform an operation corresponding to the operation instruction on the copy file to obtain a private file of the user.

[0123] According to the operation type of the operation instruction, perform a corresponding operation on the copy file. For example, if the operation type of the operation instruction is modification, modify the content in the copy file according to the specific modification information in the operation instruction.

[0124] S404. Generate first index information of the private file, and save both the private file and the first index information of the private file to the user's cloud disk.

[0125] Preferably, the first index information includes but is not limited to content such as a file name, a file index identifier, and a physical file identifier.

[0126] It should be noted that the storage locations of the private file and the template file are different. The private file is saved in the user's private cloud disk for the user to operate only, while the relevant data of the template file is saved in the resource pool and the system database of the cloud disk system, and all users using the cloud disk system can access and operate on the template file through the resource pool and the system database.

[0127] Preferably, after the user converts the target template file into a private file, information about the copied template file and user information can be recorded in the database. After that, this template file is no longer loaded by this user. Through statistical analysis, the proportion of operations for copying the template file is very small, so the data volume of this copied template file is small and will not increase the burden on the system.

[0128] In order to prevent the content of the template file in the cloud disk system from changing, when the user performs operations such as modification, transfer and storage, copying, and moving on the template file, the template file needs to be copied, and then the corresponding operation is performed on the copied file, thereby avoiding the content of the template file in the cloud disk system from changing.

[0129] Preferably, during the process of a user operating on a template file, if the user only copies the template file and converts it into a unique file of his own, it can be understood that the user creates a new file, and at this time, a new file index identifier needs to be created for the newly created file; if the user modifies the copied template file after copying the template file, a new physical file identifier also needs to be created for the modified template file. Further, if it is a copy operation, when the user logs in to the cloud disk system, both the newly created file and the original template file can be displayed; if it is a move operation, only the newly created unique file is displayed, and the original template file is no longer displayed.

[0130] By applying the method provided by the present invention, only one copy of the data of the template file needs to be saved in the cloud disk system, and all users using the cloud disk system can be provided with operations such as viewing. The memory occupied by the template file in the cloud disk system will not increase with the expansion of the user scale, effectively cleaning a large amount of duplicate data in the cloud disk system, releasing a large amount of storage resources, while improving the system processing efficiency and reducing the operating cost of the system.

[0131] and Figure 1 Corresponding to the method described above, the present invention further provides a file processing device, which is set in the cloud disk system and is used to support Figure 1 the specific implementation of the method shown above.

[0132] Referring to Figure 5 , which is a schematic structural diagram of a file processing device provided by an embodiment of the present invention, and is specifically described as follows:

[0133] The first acquisition unit 501 is used to acquire the file adaptation characteristics of the user when the user logs in to the cloud disk system;

[0134] The first determination unit 502 is used to determine each template file matching the user based on the file adaptation characteristics and each file index information in the system database;

[0135] The first generation unit 503 is used to generate a template file list based on each template file matching the user;

[0136] The first display unit 504 is used to display the template file list to the user;

[0137] The second acquisition unit 505 is used to acquire the file query instruction fed back by the user based on the template file list and acquire the file index identifier in the file query instruction;

[0138] A second determination unit 506, configured to determine a target template file from each template file that matches the user based on the file index identifier, and determine the physical file identifier of the target template file;

[0139] A feedback unit 507, configured to feedback the physical file corresponding to the physical file identifier in the resource pool to the user.

[0140] The device provided by the embodiment of the present invention is applied to a cloud disk system. The cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each pre-constructed template file, and the system database stores the file index information of each template file; when a user logs in to the cloud disk system, the file adaptation feature of the user is obtained; based on the file adaptation feature and each file index information in the system database, each template file that matches the user is determined; a template file list is generated based on each template file that matches the user; the template file list is displayed to the user; a file query instruction feedback by the user based on the template file list is obtained, and the file index identifier in the file query instruction is obtained; a target template file is determined from each template file that matches the user based on the file index identifier, and the physical file identifier of the target template file is determined; the physical file corresponding to the physical file identifier in the resource pool is feedback to the user. Using the file index information in the system database to determine the template file that matches the user, and determining the physical file identifier based on the file index identifier in the file query instruction feedback by the user, and feedbacking the physical file of the template file corresponding to the physical file identifier in the resource pool to the user, thereby realizing the processing of the template file by the user. This processing method does not need to save the relevant information of the template file in the user's own cloud disk, but centrally stores the template file in the resource pool, and centrally stores the file index information of the template file in the system database, thereby effectively avoiding storing duplicate template files in the cloud disk system, effectively releasing a large amount of storage resources of the cloud disk system, and effectively avoiding wasting the resources of the cloud disk system.

[0141] In another device provided by the embodiment of the present invention, the first determination unit 502 includes:

[0142] A first determination subunit, configured to determine the applicable condition of each template file based on each file index information;

[0143] A judgment subunit, configured to judge whether the file adaptation feature meets the applicable condition of the template file for each template file;

[0144] A second determination subunit, configured to determine that the template file matches the user if the file adaptation feature meets the applicable condition of the template file;

[0145] A third determination subunit, configured to determine that the template file does not match the user if the file adaptation feature does not meet the applicable conditions of the template file.

[0146] In another device provided by an embodiment of the present invention, the device further includes:

[0147] A receiving unit, configured to receive an operation instruction of the target template file sent by the user;

[0148] A first obtaining unit, configured to copy the target template file to obtain a copy file of the target template file;

[0149] A second obtaining unit, configured to perform an operation corresponding to the operation instruction on the copy file to obtain a private file of the user;

[0150] A saving unit, configured to generate first index information of the private file, and save both the private file and the first index information of the private file to the user's cloud disk.

[0151] In another device provided by an embodiment of the present invention, the device further includes:

[0152] A third obtaining unit, configured to obtain second index information of each file saved in the user's cloud disk;

[0153] A second generating unit, configured to generate a personal file list based on each of the second index information;

[0154] A second displaying unit, configured to display the personal file list to the user.

[0155] In another device provided by an embodiment of the present invention, the device further includes:

[0156] A fourth obtaining unit, configured to obtain login verification information sent by the user;

[0157] A verification unit, configured to authenticate the user based on the login verification information;

[0158] A third determination unit, configured to determine that the user logs in to the cloud disk system when the user passes the authentication.

[0159] An embodiment of the present invention further provides a storage medium, where the storage medium includes stored instructions, and when the instructions run, the device where the storage medium is located is controlled to execute the above file processing method.

[0160] An embodiment of the present invention further provides an electronic device, and a schematic structural diagram thereof is as Figure 6As shown, it specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to implement the above file processing method.

[0161] The specific implementation processes and their derivative methods of the above various embodiments are all within the protection scope of the present invention.

[0162] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for a system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description of the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.

[0163] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0164] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A file processing method, characterized in that, Applied to a cloud disk system, the cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each pre-constructed template file, and the system database stores the file index information of each template file. The method includes: When a user logs in to the cloud disk system, obtain the file adaptation characteristics of the user; Based on the file adaptation characteristics and the file index information in the system database, determine each template file that matches the user. The specific steps include: based on each file index information, determine the applicable conditions of each template file; for each template file, determine whether the file adaptation characteristics meet the applicable conditions of the template file; if the file adaptation characteristics meet the applicable conditions of the template file, determine that the template file matches the user; if the file adaptation characteristics do not meet the applicable conditions of the template file, determine that the template file does not match the user; Generate a template file list based on each template file that matches the user; Display the template file list to the user; Obtain the file query instruction fed back by the user based on the template file list, and obtain the file index identifier in the file query instruction; Based on the file index identifier, determine the target template file among each template file that matches the user, and determine the physical file identifier of the target template file; Feed back the physical file corresponding to the physical file identifier in the resource pool to the user.

2. The method according to claim 1, wherein It further includes: Receive the operation instruction of the target template file sent by the user; Copy the target template file to obtain a copy file of the target template file; Perform an operation corresponding to the operation instruction on the copy file to obtain the private file of the user; Generate the first index information of the private file, and save both the private file and the first index information of the private file to the user's cloud disk.

3. The method according to claim 1, characterized in that, After performing the step of displaying the template file list to the user, it further includes: Obtain the second index information of each file saved in the user's cloud disk; Generate a personal file list based on each second index information; Display the personal file list to the user.

4. The method according to claim 1, wherein It further includes: Obtain the login verification information sent by the user; Authenticate the user based on the login verification information; When the user passes the authentication, determine that the user logs in to the cloud disk system.

5. A file processing device, characterized in that, Applied to a cloud disk system, the cloud disk system includes a resource pool and a system database. The resource pool stores the physical files of each pre-constructed template file, and the system database stores the file index information of each template file. The device includes: A first acquisition unit, configured to obtain the file adaptation characteristics of the user when the user logs in to the cloud disk system; A first determination unit, configured to determine each template file that matches the user based on the file adaptation feature and each file index information in the system database; the first determination unit includes: a first determination subunit, configured to determine the applicable condition of each template file based on each file index information; a judgment subunit, configured to, for each template file, judge whether the file adaptation feature meets the applicable condition of the template file; a second determination subunit, configured to, if the file adaptation feature meets the applicable condition of the template file, determine that the template file matches the user; a third determination subunit, configured to, if the file adaptation feature does not meet the applicable condition of the template file, determine that the template file does not match the user; A first generation unit, configured to generate a template file list based on each template file that matches the user; A first display unit, configured to display the template file list to the user; A second acquisition unit, configured to acquire a file query instruction fed back by the user based on the template file list, and acquire the file index identifier in the file query instruction; A second determination unit, configured to determine a target template file from each template file that matches the user based on the file index identifier, and determine the physical file identifier of the target template file; A feedback unit, configured to feedback the physical file corresponding to the physical file identifier in the resource pool to the user.

6. The device according to claim 5, characterized in that, It further includes: A reception unit, configured to receive the operation instruction of the target template file sent by the user; A first acquisition unit, configured to copy the target template file to obtain a copy file of the target template file; A second acquisition unit, configured to perform an operation corresponding to the operation instruction on the copy file to obtain a private file of the user; A storage unit, configured to generate first index information of the private file, and store both the private file and the first index information of the private file in the user's cloud disk.

7. A storage medium, characterized in that, The storage medium includes stored instructions, wherein when the instructions run, they control the device where the storage medium is located to execute the file processing method according to any one of claims 1-4.

8. An electronic device, characterized in that, It includes a memory, and one or more instructions, wherein one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the file processing method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Cloud disk resource storage method and apparatus

    CN106557269A

  • Cloud disk management method and device, computer equipment and readable storage medium

    CN113590048A