Method and device for determining file path and storage medium
By obtaining and matching file identification information in the NTFS file system in the object storage system, the problem of storage efficiency reduction caused by file path changes is solved, and accurate determination and efficient storage of file paths are achieved.
Patent Information
- Application Number
- CN202411119151.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The path of the existing object storage system changes when the file is moved, making it difficult to determine the file path, which reduces the efficiency of file storage.
By obtaining the identification information of the preset file, the file identification information in the exchange data stream ADS of the file is queried based on the NTFS file system, and the target path information is matched to determine the file path, ensuring that the path information does not change with the file name or address.
It realizes that the path information can still be accurately obtained when files are moved in the object storage system, and improves the efficiency of data storage.
Smart Images

Figure CN119025482A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, device and storage medium for determining a file path. Background Art
[0002] Object storage is a distributed storage method that organizes data into objects and uses objects as the basic unit for data management and access.
[0003] In the prior art, object storage systems are usually composed of multiple storage nodes and large-scale distributed software, which require complex management and maintenance. Building and managing such systems requires professional knowledge and experience, which increases the complexity of deployment and operation and maintenance. When files in an object storage system are moved, the path of the file may also change, and the file cannot be found based on the initial path of the file storage, which reduces the efficiency of file storage. Therefore, how to quickly determine the file path and improve the efficiency of data storage is a technical problem that still needs to be solved. Summary of the invention
[0004] The present application provides a method, device and storage medium for determining a file path, for improving the efficiency of data storage.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a file path determination device obtains identification information of a preset file; the file path determination device queries the file identification information in the exchange data stream ADS of each file in at least one file based on the new technology file system NTFS file system; at least one file includes a preset file; if the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the file path determination device obtains the target path information of the first file; the first file is a file in at least one file; the file path determination device configures the target path information as the path information of the preset file.
[0007] In a possible implementation, identification information of a first domain is obtained; the first domain is used to identify a coverage area of a folder to which a preset file belongs; based on the identification information of the preset file, file identification information in the ADS of each file in at least one file is queried in the first domain.
[0008] In a possible implementation, path information of the second file and identification information of the second domain are obtained; the second domain is used to identify the coverage area of the folder to which the second file belongs; the second file is a file in at least one file; based on the path information of the second file, determine whether configuration identification information of the second domain exists in the directory where the second file is located and in the parent directory of the directory; when configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, create an ADS for the second file; the ADS of the second file includes the second file identification information.
[0009] In a possible implementation, the path information of the second file and the second file identification information are sent to the first database; the first database includes identification information of at least one file and corresponding path information of the at least one file identification information.
[0010] In one possible implementation, path information and third file identification information of a third file are obtained; the third file is a file in the second domain; based on the path information of the third file, it is determined whether the third file identification information exists in the target file ADS corresponding to the path information of the third file; if the third file identification information exists in the ADS of the target file, the ADS of the target file is deleted.
[0011] In one possible implementation, when the third file identification information does not exist in the ADS of the target file, the file identification information in the ADS of each file in the second domain is queried based on the NTFS file system; if the fourth file identification information in the ADS of the fourth file in the second domain is the same as the third file identification information, the ADS of the fourth file is deleted.
[0012] In a possible implementation, path information of a preset directory and identification information of a target domain are obtained; based on the path information of the preset directory, it is determined whether the target directory includes first information; the first information includes at least one of the following: domain configuration information, domain identification information, and a first database, the first database including identification information of at least one file and path information corresponding to the identification information of at least one file; the target directory includes: a preset directory, an upper directory of the preset directory, and a lower directory of the preset directory; if the target directory does not include the first information, a target domain is created in the preset directory.
[0013] In a second aspect, the present application provides a device for determining a file path, comprising: an acquisition unit and a processing unit: the acquisition unit is used to acquire identification information of a preset file; the processing unit is used to query the file identification information in the exchange data stream ADS of each file in at least one file based on the NTFS file system; at least one file includes a preset file; the processing unit is used to acquire target path information of the first file if the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file; the first file is a file in at least one file; the processing unit is used to configure the target path information as the path information of the preset file.
[0014] In one possible implementation, an acquisition unit is used to acquire identification information of a first domain; the first domain is used to identify a coverage area of a folder to which a preset file belongs; and a processing unit is used to query file identification information in an ADS of each file in at least one file in the first domain based on the identification information of the preset file.
[0015] In a possible implementation, an acquisition unit is used to acquire path information of a second file and identification information of a second domain; the second domain is used to identify a coverage area of a folder to which the second file belongs; the second file is a file in at least one file; a processing unit is used to determine, based on the path information of the second file, whether configuration identification information of the second domain exists in the directory where the second file is located and in the parent directory of the directory; when configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, the processing unit creates an ADS for the second file; and the ADS for the second file includes the second file identification information.
[0016] In a possible implementation, the acquisition unit is used to send the path information of the second file and the second file identification information to the first database; the first database includes identification information of at least one file and corresponding path information of the at least one file identification information.
[0017] In one possible implementation, an acquisition unit is used to acquire path information and third file identification information of a third file; the third file is a file in the second domain; a processing unit is used to determine whether third file identification information exists in a target file ADS corresponding to the path information of the third file based on the path information of the third file; if the third file identification information exists in the ADS of the target file, the processing unit deletes the ADS of the target file.
[0018] In one possible implementation, when the third file identification information does not exist in the ADS of the target file, the processing unit queries the file identification information in the ADS of each file in the second domain based on the NTFS file system; if the fourth file identification information in the ADS of the fourth file in the second domain is the same as the third file identification information, the processing unit deletes the ADS of the fourth file.
[0019] In a possible implementation, an acquisition unit is used to acquire path information of a preset directory and identification information of a target domain; a processing unit is used to determine whether the target directory includes first information based on the path information of the preset directory; the first information includes at least one of the following: domain configuration information, domain identification information, and a first database, the first database including identification information of at least one file and path information corresponding to the identification information of at least one file; the target directory includes: a preset directory, an upper directory of the preset directory, and a lower directory of the preset directory; if the target directory does not include the first information, the processing unit creates a target domain in the preset directory.
[0020] In a third aspect, an embodiment of the present application provides a device for determining a file path, which device for determining a file path includes: a processor and a memory; wherein the memory is used to store computer execution instructions, and when the device for determining a file path is running, the processor executes the computer execution instructions stored in the memory, so that the device for determining a file path performs the method for determining a file path as described in the first aspect and any possible implementation method of the first aspect.
[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions in the computer-readable storage medium are executed by a processor of a device for determining a file path, the device for determining a file path is enabled to execute a method for determining a file path as described in the first aspect and any possible implementation of the first aspect.
[0022] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the method for determining a file path described in the above-mentioned first aspect and any possible implementation method of the first aspect.
[0023] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for determining a file path described in the first aspect and any possible implementation of the first aspect.
[0024] In the present disclosure, the name of the above-mentioned file path determination device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of the present disclosure, they fall within the scope of the claims of the present disclosure and their equivalent technologies.
[0025] These and other aspects of the present application will become more apparent from the following description.
[0026] The above scheme brings at least the following beneficial effects: In the present application, the device for determining the file path obtains the identification information of the preset file, and based on the NTFS file system, queries the file identification information in the exchange data stream ADS of each file in at least one file, and at least one file includes the preset file. In this way, the device for determining the file path can query the file matching the identification information of the preset file in at least one file based on the identification information of the preset file. Since the ADS information of the file is the identification information hidden by the file, it will not change with the change of the name of the file and the address of the file. Therefore, when the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the target path information of the first file can be configured as the path information of the preset file. In this way, when the preset file in the object storage system moves, the device for determining the file path can still obtain the path information of the preset file, so that the storage device can store the preset file based on the path information of the preset file, thereby improving the efficiency of data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] Figure 1 A schematic diagram of the structure of a system for determining a file path provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the structure of a device for determining a file path provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0031] Figure 4 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0032] Figure 5A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0033] Figure 6 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0034] Figure 7 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0035] Figure 8 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0036] Fig. 9 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0037] Fig.10 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0038] Fig.11 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0039] Fig.12 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0040] Fig.13 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0041] Fig.14 A flowchart of a method for determining a file path provided in an embodiment of the present application;
[0042] Fig.15 A schematic diagram of the structure of another device for determining a file path provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0044] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0045] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0046] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0047] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0048] The following is an explanation of the terms used in this application.
[0049] 1. Object Storage
[0050] Object storage is a distributed storage method that organizes data into objects, and manages and accesses data based on objects. Object storage is usually composed of multiple storage nodes such as servers, hard disks, and SSDs. These storage nodes communicate and collaborate with each other through the network to achieve high availability and scalability.
[0051] 2. Object storage functions
[0052] Object storage mainly supports the following functions: object creation and writing, object reading and deletion, data redirection and migration, and data redundancy and backup.
[0053] Object creation and writing means that when a new object needs to be created and written to the object storage system, a storage node needs to be selected to store the object. In order to achieve load balancing and high availability, the object storage system usually divides the object into a series of data blocks and stores these data blocks in different nodes. When writing an object, the object storage system will use certain strategies to distribute the data blocks to the appropriate storage nodes according to certain rules, and replicate and back up the data blocks to provide fault tolerance and data reliability.
[0054] Object reading and deletion means that when an existing object needs to be read or deleted, the object storage system will use the metadata index to determine the object storage location. Metadata usually includes information such as object name, size, storage node, etc. When reading an object, the object storage system will use the scheduling algorithm to find the node where the object is stored and transfer the data block to the requester. When deleting an object, the object storage system will delete the object's data block and update the metadata index to free up space.
[0055] Data redirection and migration means that data may need to be moved and redirected between different nodes due to node failure, network anomaly, etc. To achieve this goal, object storage systems usually use some data migration strategies and routing algorithms to transfer data blocks on damaged or failed storage nodes to other nodes and update the corresponding metadata indexes. Data migration and redirection can help maintain the high availability of the storage system and reduce data access latency.
[0056] Data redundancy and backup refer to the fact that object storage usually uses data redundancy and backup technologies to ensure data integrity and reliability. Data redundancy refers to storing the same data block on multiple nodes to provide fault tolerance and data reliability. Backup refers to regularly copying data blocks to other nodes and ensuring data security through periodic backup. Data redundancy and backup can reduce the risk of data loss and damage, while improving the efficiency of data recovery.
[0057] The above is an explanation of the terms in this application.
[0058] Object storage is a distributed storage method that organizes data into objects and manages and accesses data based on objects as the basic unit.
[0059] In the prior art, object storage systems are usually composed of multiple storage nodes and large-scale distributed software, which require complex management and maintenance. Building and managing such systems requires professional knowledge and experience, which increases the complexity of deployment and operation and maintenance. When files in an object storage system are moved, the path of the file may also change, and the file cannot be found based on the initial path of the file storage, which reduces the efficiency of file storage. Therefore, how to quickly determine the file path and improve the efficiency of data storage is a technical problem that still needs to be solved.
[0060] In order to solve the technical problems existing in the related art, in an embodiment of the present application, a device for determining a file path obtains identification information of a preset file, and based on the NTFS file system, queries the file identification information in the exchange data stream ADS of each file in at least one file. In this way, the device for determining a file path can query at least one file for a file that matches the identification information of the preset file based on the identification information of the preset file. Since the ADS information of a file is identification information hidden by the file, it will not change with the change of the name of the file or the address of the file. Therefore, when the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the target path information of the first file can be configured as the path information of the preset file. In this way, when the preset file in the object storage system moves, the device for determining a file path can still obtain the path information of the preset file, so that the storage device can store the preset file based on the path information of the preset file, thereby improving the efficiency of data storage.
[0061] Below, combined with the attached Figure 1 A system 10 for determining a file path provided in an embodiment of the present application is described in detail. Figure 1 As shown, the system 10 for determining a file path includes: a file path determining device 11, a terminal device 12 and an NTFS file system 13.
[0062] The terminal device 12 is configured to send identification information of a preset file to the device 11 for determining a file path.
[0063] The file path determination device 11 is configured to: obtain identification information of a preset file; based on the NTFS file system 13, query the file identification information in the exchange data stream ADS of each file in at least one file; if the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, then obtain the target path information of the first file; the first file is a file in at least one file; and configure the target path information as the path information of the preset file.
[0064] It should be noted that the terminal device 12 is a device with wireless communication function, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted. It can also be deployed on the water surface (such as ships, etc.). It can also be deployed in the air (for example, on airplanes, balloons, and satellites, etc.). The terminal device 12 is also called a mobile station (MS), a mobile terminal (MT), and a terminal, etc., and is a device that provides voice and / or data connectivity to users. For example, the terminal device 12 includes a handheld device with wireless connection function, a vehicle-mounted device, etc. At present, the terminal device 12 can be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), an in-vehicle device (such as a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed train, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (such as a refrigerator, a TV, an air conditioner, an electric meter, etc.), an intelligent robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flying device (such as an intelligent robot, a hot air balloon, a drone, an airplane), etc. In a possible application scenario of the present application, the terminal device is a terminal device that often works on the ground, such as an in-vehicle device. In this application, for the sake of ease of description, chips deployed in the above-mentioned devices, such as system-on-a-chip (SOC), baseband chips, etc., or other chips with communication functions may also be referred to as terminal devices 12.
[0065] Optionally, the terminal device 12 may be an embedded communication device or a user's handheld communication device, including a mobile phone, a tablet computer, etc.
[0066] As an example, in the embodiment of the present application, the terminal device 12 can also be a wearable device. Wearable devices can also be called wearable smart devices, which are a general term for wearable devices that use wearable technology to intelligently design and develop wearable devices for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0067] Please provide a device for determining a file path in this embodiment, which is applied to execute the system for determining a file path provided in this embodiment of the application. Figure 2 A schematic diagram of a structure of a device for determining a file path provided in an embodiment of the present application. Figure 2 As shown, the file path determination device 200 includes at least one processor 201, a communication line 202, and at least one communication interface 204, and may also include a memory 203. The processor 201, the memory 203 and the communication interface 204 may be connected via the communication line 202.
[0068] Processor 201 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as: one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).
[0069] The communication link 202 may include a pathway for transmitting information between the above-mentioned components.
[0070] The communication interface 204 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), WLAN, etc.
[0071] The memory 203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0072] In one possible design, the memory 203 can exist independently of the processor 201, that is, the memory 203 can be a memory outside the processor 201. In this case, the memory 203 can be connected to the processor 201 through the communication line 202, and is used to store execution instructions or application code, and the processor 201 controls the execution to implement the method for determining the file path provided in the following embodiment of the present application. In another possible design, the memory 203 can also be integrated with the processor 201, that is, the memory 203 can be the internal memory of the processor 201, for example, the memory 203 is a high-speed cache, which can be used to temporarily store some data and instruction information, etc.
[0073] As an implementation method, the processor 201 may include one or more CPUs, for example Figure 2 As another achievable method, the file path determination device 200 may include multiple processors, such as Figure 2 As another possible implementation, the apparatus 200 for determining a file path may further include an output device 205 and an input device 206.
[0074] Below, combined with the attached Figure 3 The method for determining the file path provided in the embodiment of the present application is described in detail. Figure 3 As shown, the method for determining the file path includes:
[0075] S301: The file path determination device obtains identification information of a preset file.
[0076] In a possible implementation, the file path determining device receives a first query request message from a terminal device, and acquires identification information of a preset file based on the first query request message. The first query request message is used to request to query path information of the preset file.
[0077] It needs to be explained that the identification information of the preset file is used to identify the preset file.
[0078] Optionally, the identification information of the file can be a string.
[0079] S302: The file path determination device queries the file identification information in the ADS of each file in at least one file based on the NTFS file system.
[0080] Wherein, at least one file includes a preset file.
[0081] In a possible implementation, the file path determining device searches for a path corresponding to the identification information of the preset file in a first database based on the identification information of the preset file; if the path corresponding to the identification information of the preset file is not found in the first database, the device searches for the file identification information in the alternate data streams (ADS) of each file in the at least one file based on the New Technology File System (NTFS) file system. The first database includes the identification information of the at least one file and the path information corresponding to the identification information of the at least one file.
[0082] In one possible implementation, the device for determining the file path searches for a path corresponding to the identification information of the preset file in a first database based on the identification information of the preset file; if the preset file is not found based on the path corresponding to the identification information of the preset file found in the first database, the file identification information in the exchange data stream ADS of each file in at least one file is queried based on the NTFS file system.
[0083] S303: If the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the file path determination device acquires the target path information of the first file.
[0084] The first file is a file in the at least one file.
[0085] In a possible implementation, if the similarity between the identification information of the first file in the ADS of the first file and the identification information of the preset file is greater than a preset threshold, the file path determination device acquires the target path information of the first file.
[0086] Optionally, the preset threshold is 0.998.
[0087] S304: The file path determination device configures the target path information as the path information of the preset file.
[0088] In a possible implementation, the file path determination device sends first query response information to the terminal device.
[0089] Optionally, the first query response information includes path information of a preset file.
[0090] It should be explained that the path information of the file can be network address information or folder level information. This application does not make further limitations.
[0091] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the device for determining the file path obtains the identification information of the preset file, and based on the NTFS file system, queries the file identification information in the exchange data stream ADS of each file in at least one file, and at least one file includes the preset file. In this way, the device for determining the file path can query the file matching the identification information of the preset file in at least one file based on the identification information of the preset file. Since the ADS information of the file is the identification information hidden by the file, it will not change with the change of the name of the file and the address of the file. Therefore, when the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the target path information of the first file can be configured as the path information of the preset file. In this way, when the preset file in the object storage system moves, the device for determining the file path can still obtain the path information of the preset file, so that the storage device can store the preset file based on the path information of the preset file, thereby improving the efficiency of data storage.
[0092] In one possible implementation, combining Figure 3 ,like Figure 4 As shown, the above S302, the process of determining the file path device based on the NTFS file system, querying the file identification information in the ADS of each file in at least one file can be specifically implemented through the following S401-S402.
[0093] S401: The file path determination device obtains identification information of a first domain.
[0094] The first field is used to identify the coverage area of the folder to which the preset file belongs.
[0095] In a possible implementation manner, the file path determining device obtains identification information of the first domain from the terminal device.
[0096] In another possible implementation, the file path determination device sends a second query request message to a second database; receives a second query response message from the second database, and determines the domain to which the preset file belongs based on the second query response message. The second query request message is used to request to query the first domain for domain information to which the preset file belongs.
[0097] Optionally, the second query request information includes identification information of a preset file.
[0098] It needs to be explained that the folders in the system can be stacked on top of each other, a folder can store at least one subfolder, and each folder corresponds to a domain.
[0099] S402: The file path determining device queries the ADS of each file in the at least one file in the first domain for file identification information.
[0100] In a possible implementation, if the file path determining device does not find the file in the first domain, the file path determining device queries the ADS of each file in at least one file in the upper-level domain to which the first domain belongs for file identification information.
[0101] It should be explained that the files in the first domain include the files in the first subdomain, and the folders belonging to the first domain include the folders belonging to the first subdomain.
[0102] Optionally, the file path determination device queries the file identification information in the ADS of each file in the at least one file in the first domain, and records the file identification information corresponding to each file in the at least one file. The file path determination device calculates the similarity between the file identification information in the ADS of each file in the at least one file and the identification information of the preset file.
[0103] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the file path determination device queries the file identification information in the ADS of each file in at least one file in the first domain, which can enable the terminal device to purposefully search for the first file and improve the efficiency of the file path determination device in determining the preset file path.
[0104] In one possible implementation, combining Figure 3 ,like Figure 5 As shown, before the above S301, the file path determining device acquires the identification information of the preset file, the file path determining device creates the ADS of the file. The process of the file path determining device creating the ADS of the file can be specifically implemented through the following S501-S503.
[0105] S501: The file path determination device obtains path information of a second file and identification information of a second domain.
[0106] The second field is used to identify the coverage area of the folder to which the second file belongs, and the second file is a file in the at least one file.
[0107] Optionally, the second file is a file in at least one file in the second domain.
[0108] In a possible implementation, the file path determination device receives an ADS establishment request message from the terminal device, and acquires the path information of the second file and the identification information of the second domain based on the ADS establishment request message. The ADS establishment request message is used to request the file path determination device to create an ADS for the second file.
[0109] Optionally, the ADS establishment request information includes path information of the second file and identification information of the second domain.
[0110] It should be explained that the second domain may be the same as or different from the first domain, and this application does not make any further limitations on this.
[0111] S502: The file path determining means determines whether there is configuration identification information of the second domain in the directory where the second file is located and in the parent directory of the directory based on the path information of the second file.
[0112] In a possible implementation, the file path determining device determines the directory where the second file is located based on the path information of the second file, and determines the configuration identification information of the domain in the directory where the second file is located. When the configuration identification information of the domain in the directory where the second file is located is different from the configuration identification information of the second domain, the file path determining device determines the configuration identification information of the domain in the parent directory of the directory where the second file is located, and determines whether the configuration identification information of the second domain exists in the parent directory of the directory where the second file is located.
[0113] In a possible implementation, if the configuration identification information of the domain in the directory where the second file is located is the same as the configuration identification information of the second domain, it is not necessary to determine whether the configuration identification information of the second domain exists in the parent directory of the directory where the second file is located.
[0114] S503: When the configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, the file path determining device creates an ADS for the second file.
[0115] The ADS of the second file includes second file identification information.
[0116] In a possible implementation, when the configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, the file path determination device determines whether the identification information of the file exists in the ADS of the second file. If the identification information of the file does not exist in the ADS of the second file, the file path determination device creates the ADS of the second file.
[0117] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the device for determining the file path establishes an ADS for the file. Since the ADS information of the file is the identification information hidden in the file, it will not change with the change of the name of the file or the address of the file. Therefore, when the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the target path information of the first file can be configured as the path information of the preset file. In this way, when the preset file in the object storage system moves, the device for determining the file path can still obtain the path information of the preset file, so that the storage device can store the preset file based on the path information of the preset file, thereby improving the efficiency of data storage.
[0118] In one possible implementation, combining Figure 5 ,like Figure 6 As shown, in the above S503, when the directory where the second file is located and the parent directory of the directory contain the configuration identification information of the second domain, after the file path determination device creates the ADS of the second file, the file path determination device updates the first database. The process of updating the first database by the file path determination device can be specifically implemented by the following S601.
[0119] S601: The device for determining a file path sends path information of a second file and second file identification information to a first database.
[0120] In a possible implementation, after receiving the path information and the second file identification information of the second file, the first database stores the path information and the second file identification information of the second file and sends a storage completion message to the file path determination device. After receiving the storage completion message, the file path determination device sends a URL link to the terminal device.
[0121] Optionally, the URL link includes: a specified protocol type, a domain identifier, and a file identifier.
[0122] Exemplarily, the specified protocol type includes at least one of the following: http, application app, object storage local tool fobs; the file identifier includes: fobs: / / domain ABC / file 123.
[0123] It should be explained that domain ABC is the name of the domain or a unique identifier automatically generated when the domain is created; file 123 is the object storage identifier generated by the file, which needs to be unique within the domain. The generation method can be "date and time + random number", UUID, incremental count within the domain, etc., the method is not limited, the type (number, or number + letter, etc.) is not limited, as long as it is unique.
[0124] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the file path determination device sends the path information and the second file identification information of the second file to the first database, so that the first database can timely register the path information and the file identification information of the file. When the terminal device queries the second file again, the second file can be stored based on the path information of the second file, thereby improving the efficiency of file storage.
[0125] In one possible implementation, combining Figure 6 ,like Figure 7 As shown, after the file path determination device sends the path information of the second file and the second file identification information to the first database in S601, the file path determination device deletes the ADS of the file. The process of deleting the ADS of the file by the file path determination device can be specifically implemented through the following S701-S702.
[0126] S701: The file path determining device obtains path information and third file identification information of a third file.
[0127] The third file is a file in the second domain.
[0128] In a possible implementation, the file path determining device obtains the path information and the third file identification information of the third file through a terminal device interface or tool.
[0129] S702: The file path determining means determines, based on the path information of the third file, whether third file identification information exists in the target file ADS corresponding to the path information of the third file.
[0130] In a possible implementation, the file path determining device determines whether the third file identification information exists in the target file ADS corresponding to the path information of the third file based on the path information of the third file and the NTFS file system.
[0131] S703: When the third file identification information exists in the ADS of the target file, the file path determining device deletes the ADS of the target file.
[0132] In a possible implementation, when the third file identification information exists in the ADS of the target file, the file path determining device deletes the ADS of the target file through the NTFS file system.
[0133] In a possible implementation, after deleting the ADS of the target file, the file path determination device sends first deletion information to the first database.
[0134] Optionally, the first deletion information is used to instruct the first database to delete information related to the third file.
[0135] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, when a file is migrated, the file path determination device determines whether there is third file identification information in the target file ADS corresponding to the path information of the third file based on the path information of the third file, and can update the ADS information of the file in the system.
[0136] In one possible implementation, combining Figure 7 ,like Figure 8 As shown, after the file path determination device determines whether the third file identification information exists in the target file ADS corresponding to the path information of the third file based on the path information of the third file in the above S702, the file path determination device processes the situation that the third file identification information does not exist in the ADS of the target file. When the third file identification information does not exist in the ADS of the target file, the process of the file path determination device deleting the ADS of the file can be specifically implemented through the following S801-802.
[0137] S801: When the third file identification information does not exist in the ADS of the target file, the file path determining device queries the ADS of each file in the second domain for file identification information based on the NTFS file system.
[0138] In a possible implementation, when the third file identification information does not exist in the ADS of the target file, the file path determination device searches for the file identification information in the ADS of each file in the second domain on the operation page in the NTFS file system.
[0139] S802: If the fourth file identification information in the ADS of the fourth file in the second domain is the same as the third file identification information, the file path determination device deletes the ADS of the fourth file.
[0140] In a possible implementation, after deleting the ADS of the fourth file, the file path determining device sends first deletion information to the first database.
[0141] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, when a file is migrated, the file path determination device determines whether there is third file identification information in the target file ADS corresponding to the path information of the third file based on the path information of the third file, even if the ADS information of the file in the system is updated. At the same time, the ADS information of the file is deleted by querying the file identification information in the ADS of each file in the second domain based on the NTFS file system, which can improve the accuracy of deleting the ADS information of the file.
[0142] In one possible implementation, combining Figure 3 ,like Fig. 9 As shown, before the above S301, determining the file path device to obtain the identification information of the preset file, the file path device creates a domain. The process of determining the file path device to create a domain can be specifically implemented through the following S901-S903.
[0143] S901: The file path determination device obtains path information of a preset directory and identification information of a target domain.
[0144] In a possible implementation, the file path determining device receives designated directory creation set information from a terminal device, and determines the path information of a preset directory based on the designated directory creation set information.
[0145] Optionally, the specified directory creation set information includes path information of a preset directory and identification information of a domain.
[0146] S902: The file path determining device determines whether the target directory includes the first information based on the path information of the preset directory.
[0147] The first information includes at least one of the following: domain configuration information, domain identification information, and a first database. The first database includes at least one file identification information and at least one file identification information corresponding path information; the target directory includes: a preset directory, an upper directory of the preset directory, and a lower directory of the preset directory.
[0148] S903: If the target directory does not include the first information, the file path determination device creates a target domain in the preset directory.
[0149] In a possible implementation, after the file path determining device creates the target domain in the preset directory, it determines the location information of the domain based on the path information of the preset directory and sends the second information to the second database.
[0150] Optionally, the second information includes domain identification information and location information of the target domain.
[0151] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, if the target directory does not include the first information, the file path determination device creates a target domain in the preset directory to avoid domain inclusion and accurately manage files.
[0152] Below, combined with the attached Fig.10 The method for determining the file path provided in the embodiment of the present application is described in detail. Fig.10 As shown, the method for determining the file path includes:
[0153] S1001. The terminal device sends a URL to a device for determining a file path.
[0154] The url includes the file path information corresponding to the query file object storage identifier.
[0155] S1002: The file path determination device parses the domain identifier and the file object storage identifier in the URL.
[0156] S1003: The file path determining device queries the domain path in the second database through the domain identifier.
[0157] S1004: The file path determination device searches for a file object storage identifier in a first database.
[0158] S1005: If the file object storage identifier exists in the second database, the file path determination device determines whether the file path in the cache is correct.
[0159] S1006: If the file object storage identifier does not exist in the second database, determine whether all files in the directory corresponding to the recursive traversal domain of the file path device are files corresponding to the object storage identifier.
[0160] S1007: If the file path corresponding to the URL is found, the file path determination device feeds back the path of the file in the NTFS file system to the terminal device.
[0161] S1008: If the file path corresponding to the URL is found, the file path determination device feedbacks that the corresponding file is not found.
[0162] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, the device for determining the file path obtains the identification information of the preset file, and based on the NTFS file system, queries the file identification information in the exchange data stream ADS of each file in at least one file. In this way, the device for determining the file path can query the file matching the identification information of the preset file in at least one file based on the identification information of the preset file. Since the ADS information of the file is the identification information hidden by the file, it will not change with the change of the name of the file and the address of the file. Therefore, when the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, the target path information of the first file can be configured as the path information of the preset file. In this way, when the preset file in the object storage system moves, the device for determining the file path can still obtain the path information of the preset file, so that the storage device can store the preset file based on the path information of the preset file, thereby improving the efficiency of data storage.
[0163] Below, combined with the attached Fig.11 The method for determining the file path provided in the embodiment of the present application is described in detail. Fig.11 As shown, the method for determining the file path includes:
[0164] S1101. The terminal device sends third information to the device for determining a file path.
[0165] The third information includes a file object storage identifier for deleting the specified file.
[0166] S1102: The file path determination device queries the NTFS file system whether an object storage identifier already exists.
[0167] S1103: If the object storage identifier already exists, the file path determination device obtains the file object storage identifier in the NTFS exchange data stream file of the file and then deletes the file ADS.
[0168] S1104: The file path determination device sends first indication information to the NTFS file system.
[0169] The first instruction information is used to instruct the NTFS file system to traverse the directory and parent directory where the specified file is located to query the domain to which it belongs.
[0170] S1105. The file path determination device sends second indication information to the first database.
[0171] The second indication information is used to instruct the first database to delete the relevant data of the file in the first data of the set.
[0172] S1106: The file path determination device sends a first response message to the terminal device.
[0173] The first response information is used to indicate that the file deletion has been completed.
[0174] The above scheme brings at least the following beneficial effects: In an embodiment of the present application, when a file is migrated, the file path determination device determines whether there is third file identification information in the target file ADS corresponding to the path information of the third file based on the path information of the third file, and can update the ADS information of the file in the system.
[0175] Below, combined with the attached Fig.12 The method for determining the file path provided in the embodiment of the present application is described in detail. Fig.12 As shown, the method for determining the file path includes:
[0176] S1201. The terminal device sends fourth information to the device for determining a file path.
[0177] The fourth information includes a creation file object storage identifier.
[0178] S1202: The file path determination device queries the NTFS file system for the domain to which the file belongs.
[0179] In a possible implementation, the file path determination device sends first indication information to the NTFS file system.
[0180] S1203: If the file does not exist in the domain to which it belongs, the file path determination device sends a first prompt message to the terminal device.
[0181] The first prompt message is used to prompt that the file does not exist in the domain to which it belongs.
[0182] S1204: If the file exists in the domain to which it belongs, the file path determination device queries through the NTFS file system whether an object storage identifier already exists.
[0183] S1205: In the case where the object storage identifier does not exist, the file path determination device creates an NTFS exchange data stream file for the file and generates a file object storage identifier.
[0184] S1206: The file path determination device sends third indication information to the first database.
[0185] The third indication information is used to indicate the correspondence between the identifier and the path of the file in the first database to be added / updated.
[0186] S1207: The file path determination device sends the URL to the terminal device.
[0187] The url includes the file path information corresponding to the query file object storage identifier.
[0188] The above scheme brings at least the following beneficial effects: in the embodiment of the present application, when a file is migrated, the file path determination device determines whether there is third file identification information in the target file ADS corresponding to the path information of the third file based on the path information of the third file, and can add ADS information of the file in the system.
[0189] Below, combined with the attached Fig.13 The method for determining the file path provided in the embodiment of the present application is described in detail. Fig.13 As shown, the method for determining the file path includes:
[0190] S1301. The terminal device sends fifth information to the device for determining a file path.
[0191] The fifth information includes synchronization cache information and a domain identifier.
[0192] S1302: The file path determination device sends the fifth indication information and the first indication information to the NTFS file system.
[0193] The fifth instruction information is used to instruct the NTFS file system to clear the cache.
[0194] S1303: The file path determination device determines whether the current file has an NTFS exchange data stream file and reads the content.
[0195] S1304: If the file content has a correct domain and object storage identifier, the file path determination device sends the identifier and path information of the newly added file to the first database.
[0196] S1305: The file path determination device sends update completion information to the terminal device.
[0197] The above scheme brings at least the following beneficial effects: In an embodiment of the present application, when a file is migrated, the file path determination device determines whether there is third file identification information in the target file ADS corresponding to the path information of the third file based on the path information of the third file, and can update the ADS information of the file in the system.
[0198] Below, combined with the attached Fig.14 The method for determining the file path provided in the embodiment of the present application is described in detail. Fig.14 As shown, the method for determining the file path includes:
[0199] S1401. The terminal device sends sixth information to the device for determining a file path.
[0200] The sixth information includes a designated directory creation set flag, and the designated directory creation set flag includes a directory path and a name of a target domain.
[0201] S1402: Determine whether there is domain configuration information under the current directory queried by the file path device.
[0202] S1403: If there is no domain configuration information in the current directory, the file path determination device queries the current directory to query files at all levels upward / downward.
[0203] S1404: When domain configuration information exists in folders at all levels, the file path determination device sends a first prompt message to the terminal device.
[0204] The first prompt information is used to prompt that the target domain cannot be established.
[0205] S1405: When there is no domain configuration information in folders at all levels, create the domain configuration information of the target domain in the current directory and initialize the first database.
[0206] S1406: The file path determination device sends second information to the second database.
[0207] S1407: The file path determination device sends a second prompt message to the terminal device.
[0208] The second prompt information is used to indicate that establishment of the target domain is completed.
[0209] The above scheme brings at least the following beneficial effects: In the embodiment of the present application, if the target directory does not include the first information, the file path determination device creates a target domain in the preset directory to avoid domain inclusion and accurately manage files.
[0210] It can be seen that the technical solution provided by the embodiment of the present application is introduced above mainly from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be easily aware that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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.
[0211] The embodiment of the present application can divide the functional modules of the file path determination device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0212] like Fig.15 , which is a schematic diagram of a structure of a device 150 for determining a file path provided in an embodiment of the present application. The device 150 for determining a file path includes: an acquisition unit 1501 and a processing unit 1502 .
[0213] An acquisition unit 1501 is used to acquire identification information of a preset file; a processing unit 1502 is used to query file identification information in an exchange data stream ADS of each file in at least one file based on an NTFS file system; at least one file includes a preset file; the processing unit 1502 is used to acquire target path information of the first file if the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file; the first file is a file in at least one file; the processing unit 1502 is used to configure the target path information as the path information of the preset file.
[0214] Optionally, the acquisition unit 1501 is used to obtain identification information of the first domain; the first domain is used to identify the coverage area of the folder to which the preset file belongs; the processing unit 1502 is used to query the file identification information in the ADS of each file in at least one file in the first domain based on the identification information of the preset file.
[0215] Optionally, acquisition unit 1501 is used to acquire path information of the second file and identification information of the second domain; the second domain is used to identify the coverage area of the folder to which the second file belongs; the second file is a file in at least one file; processing unit 1502 is used to determine whether configuration identification information of the second domain exists in the directory where the second file is located and in the parent directory of the directory based on the path information of the second file; when configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, processing unit 1502 creates an ADS for the second file; the ADS of the second file includes the second file identification information.
[0216] Optionally, the acquisition unit 1501 is used to send the path information of the second file and the second file identification information to the first database; the first database includes the identification information of at least one file and the path information corresponding to the identification information of at least one file.
[0217] Optionally, the acquisition unit 1501 is used to obtain the path information and third file identification information of the third file; the third file is a file in the second domain; the processing unit 1502 is used to determine whether the third file identification information exists in the target file ADS corresponding to the path information of the third file based on the path information of the third file; when the third file identification information exists in the ADS of the target file, the processing unit 1502 deletes the ADS of the target file.
[0218] Optionally, when the third file identification information does not exist in the ADS of the target file, processing unit 1502 queries the file identification information in the ADS of each file in the second domain based on the NTFS file system; if the fourth file identification information in the ADS of the fourth file in the second domain is the same as the third file identification information, processing unit 1502 deletes the ADS of the fourth file.
[0219] Optionally, the acquisition unit 1501 is used to obtain the path information of the preset directory and the identification information of the target domain; the processing unit 1502 is used to determine whether the target directory includes the first information based on the path information of the preset directory; the first information includes at least one of the following: domain configuration information, domain identification information and a first database, the first database includes the identification information of at least one file and the path information corresponding to the identification information of at least one file; the target directory includes: a preset directory, an upper directory of the preset directory and a lower directory of the preset directory; if the target directory does not include the first information, the processing unit 1502 creates the target domain in the preset directory.
[0220] The processing unit 1502 may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication unit may be a transceiver circuit or a communication interface, etc. The storage module may be a memory. When the processing unit 1502 is a processor, the communication unit is a communication interface, and the storage module is a memory, the file path determination device involved in the embodiment of the present application may be Figure 2 The file path device is determined as shown.
[0221] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, module and network node described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0222] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0223] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the method for determining a file path in the above method embodiment.
[0224] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is caused to execute the method for determining a file path in the above method embodiment.
[0225] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0226] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.
[0227] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining a file path, characterized in that: The method comprises: Get the identification information of the preset file; Based on the new technology file system NTFS file system, querying the file identification information in the exchange data stream ADS of each file in at least one file; the at least one file includes the preset file; If the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file, obtaining the target path information of the first file; the first file is a file in the at least one file; The target path information is configured as the path information of the preset file.
2. The method according to claim 1, characterized in that The method of querying the file identification information in the exchange data stream ADS of each file in at least one file based on the new technology file system NTFS file system includes: Acquire identification information of a first domain; the first domain is used to identify the coverage area of the folder to which the preset file belongs; Based on the identification information of the preset file, the file identification information in the ADS of each file in the at least one file is queried in the first domain.
3. The method according to claim 1, characterized in that Before obtaining the identification information of the preset file, the method further includes: Acquire path information of a second file and identification information of a second domain; the second domain is used to identify a coverage area of a folder to which the second file belongs; the second file is a file in the at least one file; Based on the path information of the second file, determining whether configuration identification information of the second domain exists in the directory where the second file is located and in the parent directory of the directory; When the configuration identification information of the second domain exists in the directory where the second file is located or in the parent directory of the directory, the ADS of the second file is created; and the ADS of the second file includes the second file identification information.
4. The method according to claim 3, characterized in that After creating the ADS of the second file, the method further includes: The path information of the second file and the second file identification information are sent to a first database; the first database includes identification information of the at least one file and path information corresponding to the identification information of the at least one file.
5. The method according to claim 4, characterized in that After sending the path information of the second file and the second file identification information to the first database, the method further includes: Acquire path information of a third file and identification information of the third file; the third file is a file in the second domain; Based on the path information of the third file, determining whether the third file identification information exists in the target file ADS corresponding to the path information of the third file; In a case where the third file identification information exists in the ADS of the target file, the ADS of the target file is deleted.
6. The method according to claim 5, characterized in that The method further comprises: In the case that the third file identification information does not exist in the ADS of the target file, querying the file identification information in the ADS of each file in the second domain based on the NTFS file system; If the fourth file identification information in the ADS of the fourth file in the second domain is the same as the third file identification information, the ADS of the fourth file is deleted.
7. The method according to any one of claims 1 to 6, characterized in that: Before obtaining the identification information of the preset file, the method further includes: Obtain the path information of the preset directory and the identification information of the target domain; Based on the path information of the preset directory, determining whether the target directory includes first information; the first information includes at least one of the following: domain configuration information, domain identification information, and a first database, the first database including identification information of the at least one file and path information corresponding to the identification information of the at least one file; the target directory includes: a preset directory, an upper directory of the preset directory, and a lower directory of the preset directory; If the target directory does not include the first information, a target domain is created in the preset directory.
8. A device for determining a file path, characterized in that: The device comprises an acquisition unit and a processing unit: The obtaining unit is used to obtain identification information of a preset file; The processing unit is used to query the file identification information in the exchange data stream ADS of each file in at least one file based on the NTFS file system; The processing unit is configured to obtain target path information of the first file if the identification information of the first file in the ADS of the first file is the same as the identification information of the preset file; the first file is a file in the at least one file; The processing unit is used to configure the target path information as the path information of the preset file.
9. A device for determining a file path, characterized in that: include: A processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device for determining a file path is running, the processor executes the computer-executable instructions stored in the memory, so that the device for determining a file path executes the method for determining a file path described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed by a device for determining a file path, cause the computer to execute the method for determining a file path according to any one of claims 1 to 7.
Citation Information
Patent Citations
Apparatus and method for storing and managing data
CN101082930A
Path query method, terminal and computer readable storage medium
CN108038114A
File identifier maintenance method and device
CN110019000A
Metadata object restoration method and device, equipment and readable storage medium
CN110659257A
File acquisition method and device, server and storage medium
CN115391293A
