Methods, apparatus and storage media for determining file paths

By utilizing the ADS information of the NTFS file system in the object storage system, the problem of reduced storage efficiency caused by file path changes is solved, and path determination and storage efficiency improvement are achieved when files are moved.

CN119025482BActive Publication Date: 2026-11-10CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411119151.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2026-11-10
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Existing object storage systems suffer from reduced file storage efficiency and difficulty in quickly determining file paths when files are moved due to path changes.

Method used

By obtaining the identification information of a preset file and querying the file identification information in the file's exchange data stream ADS based on the NTFS file system, the file path determination device can search for files that match the preset file identification information in the file. The file's ADS information is used as hidden identification information that does not change with the file name or address.

Benefits of technology

It improves data storage efficiency, ensuring accurate path information is still available when files are moved, thus enhancing file storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025482B_ABST
    Figure CN119025482B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and storage medium for determining a file path, relating to the field of communications. It enables rapid file path determination and improves data storage efficiency. The method includes: obtaining identification information of a preset file; querying 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 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, then obtaining the target path information of the first file; the first file is a file in at least one file; configuring the target path information as the path information of the preset file. Embodiments of this application are applied to the process of determining a file path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a method, apparatus, and storage medium for determining a file path. Background Technology

[0002] Object storage is a distributed storage method that organizes data into objects, using objects as the basic unit for data management and access.

[0003] In existing technologies, object storage systems typically consist of multiple storage nodes and large-scale distributed software, requiring complex management and maintenance. Building and managing such systems demands specialized knowledge and experience, increasing the complexity of deployment and operation. When files in an object storage system are moved, their paths also change, making it impossible to locate files based on their initial storage paths, thus reducing file storage efficiency. Therefore, how to quickly determine file paths and improve data storage efficiency remains a technical problem to be solved. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for determining file paths, which can improve the efficiency of data storage.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, the file path determination device obtains the 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 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, then 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 one possible implementation, the identification information of the first field is obtained; the first field 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 at least one file is queried in the first field.

[0008] In one possible implementation, the path information of the second file and the identification information of the second field are obtained; the second field 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, it is determined whether the configuration identification information of the second field 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 field 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; the ADS of the second file includes the identification information of the second file.

[0009] In one possible implementation, path information of the second file and identification information of the second file are sent to a first database; the first database includes identification information of at least one file and corresponding path information of the identification information of at least one file.

[0010] In one possible implementation, the path information and identification information of the third file are obtained; the third file is a file in the second field; 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 target file ADS, the target file ADS is deleted.

[0011] In one possible implementation, if the third file identifier information is not present in the ADS of the target file, the file identifier information in the ADS of each file in the second domain is queried based on the NTFS file system; if the fourth file identifier information in the ADS of the fourth file in the second domain is the same as the third file identifier information, then the ADS of the fourth file is deleted.

[0012] In one possible implementation, the path information of a preset directory and the 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 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: the preset directory, the parent directory of the preset directory, and the subdirectories of the preset directory; if the target directory does not include the first information, the target domain is created in the preset directory.

[0013] Secondly, this application provides a file path determination apparatus, comprising: an acquisition unit and a processing unit; the acquisition unit being configured to acquire identification information of a preset file; the processing unit being configured to query file identification information in the exchange data stream (ADS) of each file in at least one file based on the NTFS file system; the at least one file includes the preset file; the processing unit being configured 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; and the processing unit being configured 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 the identification information of a first field; the first field is used to identify the coverage area of ​​the folder to which the preset file belongs; and a processing unit is used to query the file identification information in the ADS of at least one file in the first field based on the identification information of the preset file.

[0015] In one possible implementation, an acquisition unit is used to acquire the path information of the second file and the identification information of the second field; the second field 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; a processing unit is used to determine, based on the path information of the second file, whether the configuration identification information of the second field 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 field exists in the directory where the second file is located or in the parent directory of the directory, the processing unit creates the ADS of the second file; the ADS of the second file includes the identification information of the second file.

[0016] In one possible implementation, the acquisition unit is used to send the path information of the second file and the identification information of the second file to a first database; the first database includes identification information of at least one file and corresponding path information of the identification information of at least one file.

[0017] In one possible implementation, the acquisition unit is used to acquire the path information and the identification information of the third file; the third file is a file in the second field; the processing unit 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; if the third file identification information exists in the target file ADS, the processing unit deletes the target file ADS.

[0018] In one possible implementation, if the third file identifier information is not present in the ADS of the target file, the processing unit queries the file identifier information in the ADS of each file in the second domain based on the NTFS file system; if the fourth file identifier information in the ADS of the fourth file in the second domain is the same as the third file identifier information, the processing unit deletes the ADS of the fourth file.

[0019] In one 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, based on the path information of the preset directory, 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, a parent directory of the preset directory, and a subdirectory 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] Thirdly, embodiments of this application provide a file path determination apparatus, which includes a processor and a memory; wherein the memory is used to store computer execution instructions, and when the file path determination apparatus is running, the processor executes the computer execution instructions stored in the memory to cause the file path determination apparatus to perform the file path determination method as described in the first aspect and any possible implementation thereof.

[0021] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed by a processor of a file path determination device, enable the file path determination device to perform the method for determining a file path as described in the first aspect and any possible implementation thereof.

[0022] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface and the processor being coupled, the processor being used to run computer programs or instructions to implement the method for determining a file path described in the first aspect and any possible implementation of the first aspect.

[0023] In a sixth aspect, a computer program product containing instructions is provided that, when run on a computer, enables the computer to execute the method for determining a file path described in the first aspect and any possible implementation thereof.

[0024] In this disclosure, the names of the aforementioned file path determination devices do not limit the devices or functional modules themselves. In actual implementation, these devices or functional modules may appear under other names. As long as the functions of each device or functional module are similar to those of this disclosure, they fall within the scope of the claims of this disclosure and their equivalents.

[0025] These or other aspects of this application will become more readily apparent in the following description.

[0026] The above solution offers at least the following advantages: In this application, the file path determination device obtains the identification information of a preset file and, based on the NTFS file system, queries the file identification information in the Access Data Stream (ADS) of each file in at least one file, where at least one file includes the preset file. Thus, the file path determination device can query for files matching the identification information of the preset file within at least one file. Since the file's ADS information is hidden file identification information and does not change with the file's name or address, 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. Therefore, when the preset file in the object storage system is moved, the file path determination device can still obtain the path information of the preset file, enabling the storage device to store the preset file based on its path information, thereby improving data storage efficiency. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This application provides a schematic diagram of the structure of a system for determining a file path.

[0029] Figure 2 This is a schematic diagram of a device for determining a file path provided in an embodiment of this application;

[0030] Figure 3 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0031] Figure 4 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0032] Figure 5A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0033] Figure 6 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0034] Figure 7 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0035] Figure 8 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0036] Figure 9 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0037] Figure 10 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0038] Figure 11 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0039] Figure 12 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0040] Figure 13 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0041] Figure 14 A flowchart illustrating a method for determining a file path provided in an embodiment of this application;

[0042] Figure 15 This is a schematic diagram of another file path determination device provided in an embodiment of this application. Detailed Implementation

[0043] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0044] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0045] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0046] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0047] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0048] The following is a definition of the terms used in this application.

[0049] 1. Object storage

[0050] Object storage is a distributed storage method that organizes data into objects, managing and accessing data using objects as the basic unit. Object storage typically consists of multiple storage nodes such as servers, hard drives, and SSDs. These storage nodes communicate and collaborate with each other through a network, enabling high availability and scalability.

[0051] 2. Object storage functionality

[0052] Object storage primarily 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 refer to the process of selecting a storage node to store a new object when it needs to be created and written to an object storage system. To achieve load balancing and high availability, object storage systems typically divide objects into a series of data blocks and distribute these blocks across different nodes. When writing an object, the object storage system employs certain strategies to allocate data blocks to appropriate storage nodes according to specific rules, and performs replication and backup of the data blocks to provide fault tolerance and data reliability guarantees.

[0054] Object reading and deletion refer to the process by which an object storage system determines the object's storage location using its metadata index when it needs to read or delete an existing object. Metadata typically includes information such as the object name, size, and storage node. When reading an object, the object storage system uses a scheduling algorithm to find the node where the object is stored and transmits the data block to the requester. When deleting an object, the object storage system deletes the object's data block and updates the metadata index to free up space.

[0055] Data redirection and migration refer to the movement and redirection of data between different nodes due to node failures, network anomalies, or other reasons. To achieve this, object storage systems typically employ data migration strategies and routing algorithms to transfer data blocks from damaged or failed storage nodes to other nodes and update the corresponding metadata indexes. Data migration and redirection help maintain high availability of the storage system and reduce data access latency.

[0056] Data redundancy and backup refer to the techniques commonly used in object storage to ensure data integrity and reliability. Data redundancy involves storing the same data block across multiple nodes to provide fault tolerance and data reliability. Backup involves periodically replicating data blocks to other nodes and ensuring data security through periodic backups. Data redundancy and backup can reduce the risk of data loss and corruption while improving data recovery efficiency.

[0057] The above is an explanation of the terms used in this application.

[0058] Object storage is a distributed storage method that organizes data into objects, using objects as the basic unit for data management and access.

[0059] In existing technologies, object storage systems typically consist of multiple storage nodes and large-scale distributed software, requiring complex management and maintenance. Building and managing such systems demands specialized knowledge and experience, increasing the complexity of deployment and operation. When files in an object storage system are moved, their paths also change, making it impossible to locate files based on their initial storage paths, thus reducing file storage efficiency. Therefore, how to quickly determine file paths and improve data storage efficiency remains a technical problem to be solved.

[0060] To address the technical problems existing in related technologies, in this embodiment, the file path determination device obtains the identification information of a preset file and, based on the NTFS file system, queries the file identification information in the Access Data Stream (ADS) of each file in at least one file. In this way, the file path determination device can query files matching the identification information of the preset file within at least one file. Since the file's ADS information is hidden file identification information and does not change with the file's name or address, 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. Therefore, when the preset file in the object storage system is moved, the file path determination device can still obtain the path information of the preset file, enabling the storage device to store the preset file based on its path information, thus improving data storage efficiency.

[0061] The following, in conjunction with the appendix Figure 1 This application provides a detailed description of a system 10 for determining file paths, as illustrated in the embodiments below. Figure 1 As shown, the system 10 for determining file paths includes: a file path determination device 11, a terminal device 12, and an NTFS file system 13.

[0062] The terminal device 12 is configured to send the identification information of a preset file to the file path determination device 11.

[0063] The file path determination device 11 is configured to: obtain the identification information of a preset file; 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 13; 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 terminal device 12 is a device with wireless communication capabilities that can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted. It can also be deployed on water (such as on ships) or in the air (e.g., on airplanes, balloons, and satellites). Terminal device 12 is also referred to as a mobile station (MS), mobile terminal (MT), or terminal, and is a device that provides voice and / or data connectivity to users. For example, terminal device 12 includes handheld devices and vehicle-mounted devices with wireless connectivity. Currently, terminal device 12 can be: mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), wearable device (e.g., smartwatch, smart bracelet, pedometer, etc.), in-vehicle device (e.g., car, bicycle, electric vehicle, airplane, ship, train, high-speed rail, etc.), virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, smart home device (e.g., refrigerator, television, air conditioner, electricity meter, etc.), smart robot, workshop equipment, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, flying device (e.g., smart robot, hot air balloon, drone, airplane), etc. In one possible application scenario of this application, the terminal device is a terminal device that frequently works on the ground, such as an in-vehicle device. In this application, for ease of description, the chip deployed in the above-mentioned device, such as a system-on-a-chip (SOC), a baseband chip, or other chip with communication functions, may also be referred to as terminal device 12.

[0065] Optionally, the terminal device 12 can be an embedded communication device or a user handheld communication device, including mobile phones, tablets, etc.

[0066] As an example, in this embodiment, the terminal device 12 can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0067] This embodiment provides a file path determination apparatus, applied to a system that performs the file path determination function provided in this embodiment. Figure 2 This is a schematic diagram of a device for determining a file path, provided in an embodiment of this 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, memory 203, and communication interface 204 are connected via the communication line 202.

[0068] The processor 201 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).

[0069] Communication line 202 may include a path for transmitting information between the aforementioned 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 type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of including or storing desired program code having the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0072] In one possible design, the memory 203 can exist independently of the processor 201, meaning the memory 203 can be an external memory of the processor 201. In this case, the memory 203 can be connected to the processor 201 via a communication line 202 to store execution instructions or application code, and its execution is controlled by the processor 201 to implement the method for determining the file path provided in the following embodiments of this application. In another possible design, the memory 203 can also be integrated with the processor 201, meaning the memory 203 can be an internal memory of the processor 201. For example, the memory 203 can be a cache, which can be used to temporarily store some data and instruction information.

[0073] As one possible implementation, processor 201 may include one or more CPUs, for example Figure 2 CPU0 and CPU1 in the example. Alternatively, the file path determination device 200 may include multiple processors, such as... Figure 2 The processors 201 and 207 are included. Alternatively, the file path determination device 200 may also include an output device 205 and an input device 206.

[0074] The following, in conjunction with the appendix Figure 3 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 3 As shown, the method for determining the file path includes:

[0075] S301, The file path determination device obtains the identification information of the preset file.

[0076] In one possible implementation, the file path determination device receives a first query request from a terminal device and obtains the identifier information of a preset file based on the first query request. The first query request is used to request the path information of the preset file.

[0077] It should be explained that the identification information of the preset file is used to identify the preset file.

[0078] Optionally, the file's identification information can be a string.

[0079] S302. Determine the file path device based on the NTFS file system, and query the file identification information in the ADS of each file in at least one file.

[0080] At least one of the files includes a preset file.

[0081] In one possible implementation, the file path determination device searches for the path corresponding to the identifier information of a preset file in a first database. If the path corresponding to the identifier information of the preset file is not found in the first database, the device then searches for the file identifier information in the Alternate Data Streams (ADS) of each file in at least one file, based on the New Technology File System (NTFS) file system. The first database includes the identifier information of at least one file and the path information corresponding to the identifier information of at least one file.

[0082] In one possible implementation, the file path determination device searches for the path corresponding to the identifier information of a preset file in a first database based on the identifier information of the preset file; if the path corresponding to the identifier information of the preset file is found in the first database but the preset file is not found, then it searches for the file identifier information in the exchange data stream ADS of each file in at least one file 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, then the file path determination device obtains the target path information of the first file.

[0084] The first file is a file in at least one file.

[0085] In one 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 a preset file is greater than a preset threshold, then the file path determination device obtains 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 a preset file.

[0088] In one possible implementation, the file path determination device sends a first query response to the terminal device.

[0089] Optionally, the first query response information includes the path information of the preset file.

[0090] It should be noted that the file path information can be either a network address or folder hierarchy information. This application does not impose further limitations on this.

[0091] The above solution offers at least the following advantages: In this embodiment, the file path determination device obtains the identification information of a preset file and, based on the NTFS file system, queries the file identification information in the Access Data Stream (ADS) of each file in at least one file, where at least one file includes the preset file. Thus, the file path determination device can query files matching the identification information of the preset file within at least one file. Since the file's ADS information is hidden file identification information and does not change with the file's name or address, 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. Therefore, when the preset file in the object storage system is moved, the file path determination device can still obtain the path information of the preset file, enabling the storage device to store the preset file based on its path information, thereby improving data storage efficiency.

[0092] In one possible implementation, combining Figure 3 ,like Figure 4 As shown, the process of determining the file path based on the NTFS file system and 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 the identification information of the first field.

[0094] The first field is used to identify the coverage area of ​​the folder to which the preset file belongs.

[0095] In one possible implementation, the file path determination device obtains the identification information of the first field from the terminal device.

[0096] In another possible implementation, the file path determination device sends a second query request to a second database; receives a second query response from the second database; and determines the domain to which the preset file belongs based on the second query response. The second query request is used to request a query for information about the domain to which the preset file belongs, which is the first domain.

[0097] Optionally, the second query request information includes the identifier information of the preset file.

[0098] It should be explained that 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 field.

[0099] S402, The file path determination device queries the file identification information in the ADS of each file in at least one file in the first field.

[0100] In one possible implementation, if the file path determination device does not find a file in the first domain, the file path determination device queries the file identification information in the ADS of at least one file in the parent domain to which the first domain belongs.

[0101] It should be explained that files in the first domain include files in the first subdomain, and folders belonging to the first domain include 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 at least one file in the first field, and records the file identification information corresponding to each file in at least one file. The file path determination device calculates the similarity between the file identification information in the ADS of each file in at least one file and the identification information of a preset file.

[0103] The above solution brings at least the following beneficial effects: In the embodiments of this 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 enables the terminal device to search for the first file in a purposeful manner and improves 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 file path determination device obtains the identifier information of the preset file in S301 above, the file path determination device creates the ADS of the file. The process of the file path determination device creating the ADS of the file can be specifically implemented through the following S501-S503.

[0105] S501, The file path determination device obtains the path information of the second file and the identification information of the second field.

[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 at least one file.

[0107] Optionally, the second file is a file in at least one of the files in the second field.

[0108] In one possible implementation, the file path determination device receives an ADS establishment request information from a terminal device, and obtains the path information of the second file and the identification information of the second field based on the ADS establishment request information. The ADS establishment request information is used to request the file path determination device to create an ADS for the second file.

[0109] Optionally, the ADS creation request information includes the path information of the second file and the identification information of the second field.

[0110] It should be noted that the second field may be the same as or different from the first field, and this application does not impose further restrictions on this.

[0111] S502, The file path determination device determines, based on the path information of the second file, whether the directory where the second file is located and the parent directory of the directory contain configuration identifier information of the second domain.

[0112] In one 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 one possible implementation, if the configuration identifier information of the domain in the directory where the second file is located is the same as the configuration identifier information of the second domain, then it is not necessary to determine whether the configuration identifier information of the second domain exists in the parent directory of the directory where the second file is located.

[0114] S503. When the configuration identifier information of the second field exists in the directory where the second file is located or in the parent directory of the directory, the file path determination device creates the ADS of the second file.

[0115] The ADS of the second document includes the identification information of the second document.

[0116] In one possible implementation, when the configuration identifier information of the second domain exists in the directory where the second file is located or in its parent directory, the file path determining device determines whether the file identifier information exists in the ADS of the second file. If the file identifier information does not exist in the ADS of the second file, the file path determining device creates the ADS of the second file.

[0117] The above solution offers at least the following advantages: In this embodiment, the file path determination device creates an Adaptive Descriptor System (ADS) for the file. Since the ADS information of a file is hidden identification information and does not change with changes in the file name or address, when the identification information of the first file in the ADS of the first file is the same as the identification information of a 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 is moved, the file path determination device can still obtain the path information of the preset file, enabling the storage device to store the preset file based on its path information, thus improving data storage efficiency.

[0118] In one possible implementation, combining Figure 5 ,like Figure 6 As shown, in S503 above, when the configuration identifier information of the second field exists in the directory where the second file is located and its parent directory, 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 the file path determination device updating the first database can be specifically implemented through the following S601.

[0119] S601, The file path determination device sends the path information and the identification information of the second file to the first database.

[0120] In one possible implementation, after receiving the path information and the identifier information of the second file, the first database stores the path information and the identifier information of the second file and sends a storage completion message to the file path determination device. Upon receiving the storage completion message, the file path determination device sends a URL link to the terminal device.

[0121] Optionally, the URL link includes: the specified protocol type, domain identifier, and file identifier.

[0122] For example, the specified protocol type includes at least one of the following: http, app, object storage local tool fobs; the file identifier includes: fobs: / / domainABC / file123.

[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; "file123" is the object storage identifier generated for the file, which must be unique within the domain. The generation method can be "date and time + random number", UUID, or an incrementing counter within the domain, etc. The method and type (number, or number + letter, etc.) are not limited, as long as it is unique.

[0124] The above solution brings at least the following beneficial effects: In this embodiment, the file path determination device sends the path information and file identification information of the second file to the first database, so that the first database can promptly register the file path information and file identification information. When the terminal device queries the second file again, it can store the second file 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 and the second file identifier information of the second file to the first database in S601, the file path determination device deletes the file's ADS. The process of the file path determination device deleting the file's ADS can be specifically implemented through the following S701-S702.

[0126] S701, The file path determination device obtains the path information and the identifier information of the third file.

[0127] The third file is the file in the second field.

[0128] In one possible implementation, the file path determination device obtains the path information and the identifier information of the third file through a terminal device interface or tool.

[0129] S702, 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.

[0130] In one possible implementation, the file path determination device determines whether 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. If a third file identifier exists in the ADS of the target file, the file path determination device deletes the ADS of the target file.

[0132] In one possible implementation, if a third file identifier exists in the ADS of the target file, the file path determination device deletes the ADS of the target file through the NTFS file system.

[0133] In one 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 solution brings at least the following beneficial effects: In the embodiments of this 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 determining device determines whether 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 S702 above, the file path determining device processes the case where the third file identification information does not exist in the target file ADS. The process of deleting the file's ADS when the third file identification information does not exist in the target file ADS can be specifically implemented through the following S801-802.

[0137] S801. If no third file identification information is found in the ADS of the target file, the file path determination device queries the file identification information in the ADS of each file in the second field based on the NTFS file system.

[0138] In one possible implementation, if the third file identification information is not found 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 field on the operation page of the NTFS file system.

[0139] S802. If the fourth file identification information in the ADS of the fourth file in the second field is the same as the third file identification information, then the file path determination device deletes the ADS of the fourth file.

[0140] In one possible implementation, after deleting the ADS of the fourth file, the file path determination device sends the first deletion information to the first database.

[0141] The above solution brings at least the following beneficial effects: In this embodiment of the 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 updates the ADS information of the file in the system accordingly. Simultaneously, deleting the ADS information of a file by querying the file identification information in the ADS of each file in the second domain based on the NTFS file system can improve the accuracy of deleting the ADS information of the file.

[0142] In one possible implementation, combining Figure 3 ,like Figure 9 As shown, before the file path determination device obtains the identifier information of the preset file in S301 above, the file path determination device creation field is determined. The process of determining the file path determination device creation field can be specifically implemented through the following S901-S903.

[0143] S901, The file path determination device obtains the path information of the preset directory and the identification information of the target domain.

[0144] In one possible implementation, the file path determination device receives specified directory creation set information from the terminal device and determines the path information of a preset directory based on the specified directory creation set information.

[0145] Optionally, the specified directory creation set information includes the path information of the preset directory and the identification information of the domain.

[0146] S902, The file path determination 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 to a path; the target directory includes: a preset directory, the parent directory of the preset directory, and the subdirectories of the preset directory.

[0148] S903. If the target directory does not include the first information, the file path determination device creates the target domain in the preset directory.

[0149] In one possible implementation, after the file path determination device creates the target domain in a 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 the domain's identification information and the target domain's location information.

[0151] The above solution brings at least the following beneficial effects: In this embodiment of the application, if the target directory does not include the first information, the file path determination device creates a target domain in the preset directory, thereby avoiding the case where the domain is included, and thus enabling precise file management.

[0152] The following, in conjunction with the appendix Figure 10 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 10 As shown, the method for determining the file path includes:

[0153] S1001, The terminal device sends a URL to the file path determination device.

[0154] The URL includes the file path information corresponding to the file object storage identifier.

[0155] S1002, Determine the domain identifier and file object storage identifier in the URL of the file path device.

[0156] S1003, The file path determination device queries the path of the domain in the second database through the domain identifier.

[0157] S1004. The file path determination device searches for the file object storage identifier in the first database.

[0158] S1005. If a 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 file path device recursive traversal field are the files corresponding to the object storage identifier.

[0160] S1007. If the file path corresponding to the URL is found, the file path determination device will return the file path 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 reports that the corresponding file was not found.

[0162] The above solution offers at least the following advantages: In this embodiment, the file path determination device obtains the identification information of a preset file and, based on the NTFS file system, queries the file identification information in the Access Data Stream (ADS) of each file in at least one file. This allows the file path determination device to query for files matching the preset file's identification information within at least one file. Since the file's ADS information is hidden file identification information and does not change with the file's name or address, when the identification information of the first file in the ADS of the first file is the same as the preset file's identification information, the target path information of the first file can be configured as the path information of the preset file. Therefore, when a preset file in the object storage system is moved, the file path determination device can still obtain the preset file's path information, enabling the storage device to store the preset file based on its path information, thus improving data storage efficiency.

[0163] The following, in conjunction with the appendix Figure 11 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 11 As shown, the method for determining the file path includes:

[0164] S1101, The terminal device sends third information to the file path determination device.

[0165] The third piece of information includes the file object storage identifier for deleting the specified file.

[0166] S1102. Determine the file path device and query the NTFS file system to see if an object storage identifier already exists.

[0167] S1103. If an 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 the first instruction information to the NTFS file system.

[0169] The first instruction information is used to instruct the NTFS file system to traverse the directory where the specified file is located and its parent directory to query the domain to which it belongs.

[0170] S1105, The file path determination device sends second instruction information to the first database.

[0171] The second instruction information is used to instruct the first database to delete the relevant data of the file from the first data of the set.

[0172] S1106. The file path determination device sends the first response information to the terminal device.

[0173] The first response information indicates that the file deletion has been completed.

[0174] The above solution brings at least the following beneficial effects: In the embodiments of this 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] The following, in conjunction with the appendix Figure 12 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 12 As shown, the method for determining the file path includes:

[0176] S1201, The terminal device sends the fourth information to the file path determination device.

[0177] The fourth piece of information includes the file object storage identifier.

[0178] S1202. Determine the file path device by querying the NTFS file system for the domain to which the file belongs.

[0179] In one possible implementation, the file path determination device sends first instruction information to the NTFS file system.

[0180] S1203. If the file does not belong to a domain, the file path determination device sends a first prompt message to the terminal device.

[0181] The first prompt message is used to indicate that the file does not belong to a domain.

[0182] S1204. If the file has a domain to which it belongs, the file path determination device queries the NTFS file system to see if an object storage identifier already exists.

[0183] S1205. In the absence of an object storage identifier, 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 instruction information to the first database.

[0185] The third instruction information is used to indicate the correspondence between the identifier and path of the file added / updated in the first database.

[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 file object storage identifier.

[0188] The above solution brings at least the following beneficial effects: In the embodiments of this 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 the ADS information of the file in the system.

[0189] The following, in conjunction with the appendix Figure 13 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 13 As shown, the method for determining the file path includes:

[0190] S1301, The terminal device sends the fifth information to the file path determination device.

[0191] The fifth piece of information includes synchronization cache information and domain identifier.

[0192] S1302, The file path determination device sends the fifth instruction information and the first instruction information to the NTFS file system.

[0193] The fifth instruction is used to instruct the NTFS file system to clear its cache.

[0194] S1303, The file path determination device determines whether the current file contains an NTFS swap data stream file and reads its contents.

[0195] S1304. If the file content has the 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 solution brings at least the following beneficial effects: In the embodiments of this 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] The following, in conjunction with the appendix Figure 14 The method for determining the file path provided in the embodiments of this application will be described in detail, such as... Figure 14 As shown, the method for determining the file path includes:

[0199] S1401, The terminal device sends the sixth information to the file path determination device.

[0200] The sixth piece of information includes the specified directory creation set flag, which includes the directory path and the name of the target domain.

[0201] S1402. Determine whether domain configuration information exists in the current directory of the file path queried device.

[0202] S1403. If no domain configuration information exists in the current directory, the file path determination device queries the current directory to search for files at each level, both upwards and downwards.

[0203] S1404. If 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 message indicates that the target domain cannot be established.

[0205] S1405. If no domain configuration information exists in any folder, create the target domain's domain configuration information 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 message is used to indicate the completion of the establishment of the target domain.

[0209] The above solution brings at least the following beneficial effects: In this embodiment of the application, if the target directory does not include the first information, the file path determination device creates a target domain in the preset directory, thereby avoiding the case where the domain is included, and thus enabling precise file management.

[0210] As can be seen, the above mainly describes the technical solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware 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 beyond the scope of this invention.

[0211] This application embodiment can divide the file path determination device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0212] like Figure 15 The diagram shown is a structural schematic of a file path determination device 150 provided in an embodiment of this application. The file path determination device 150 includes an acquisition unit 1501 and a processing unit 1502.

[0213] The acquisition unit 1501 is used to acquire the identification information of a preset file; the processing unit 1502 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 at least one file includes the preset file; the processing unit 1502 is used to acquire the 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 acquire the identification information of the first field; the first field 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 based on the identification information of the preset file.

[0215] Optionally, the acquisition unit 1501 is used to acquire the path information of the second file and the identification information of the second field; the second field 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; the processing unit 1502 is used to determine, based on the path information of the second file, whether the configuration identification information of the second field 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 field exists in the directory where the second file is located or in the parent directory of the directory, the processing unit 1502 creates the ADS of the second file; the ADS of the second file includes the identification information of the second file.

[0216] Optionally, the acquisition unit 1501 is used to send the path information and the identification information of the second file 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 acquire the path information and the identification information of the third file; the third file is a file in the second field; 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; if 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, if the third file identifier information does not exist in the ADS of the target file, the processing unit 1502 queries the file identifier information in the ADS of each file in the second domain based on the NTFS file system; if the fourth file identifier information in the ADS of the fourth file in the second domain is the same as the third file identifier information, the processing unit 1502 deletes the ADS of the fourth file.

[0219] Optionally, the acquisition unit 1501 is used to acquire path information of a preset directory and identification information of a target domain; the processing unit 1502 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, a parent directory of the preset directory, and a subdirectory of the preset directory; if the target directory does not include the first information, the processing unit 1502 creates a target domain in the preset directory.

[0220] The processing unit 1502 may be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of 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 embodiments of this application can be... Figure 2 The device shown determines the file path.

[0221] Through the above description of the implementation methods, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the network node can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, modules, and network nodes described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0222] This application also provides a computer-readable storage medium storing instructions. When a computer executes these instructions, the computer performs each step of the method flow shown in the above method embodiments.

[0223] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run computer programs or instructions to implement the method for determining the file path in the above method embodiments.

[0224] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method for determining a file path as described in the above method embodiments.

[0225] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In embodiments of the present invention, a computer-readable storage medium may be any tangible medium 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 methods, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.

[0227] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining a file path, characterized in that, The method includes: Obtain the identification information of the preset file; Based on the NTFS file system, querying the file identification information in the ADS of each file in at least one file includes: obtaining the identification information of a first field; the first field 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, querying the file identification information in the ADS of each file in the at least one file in the first field; 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, then the target path information of the first file is obtained; the first file is a file in the at least one file. Configure the target path information as the path information of the preset file.

2. The method according to claim 1, characterized in that, Before obtaining the identifier information of the preset file, the method further includes: Obtain the path information of the second file and the identification information of the second field; the second field is used to identify the coverage area of ​​the folder to which the second file belongs; the second file is a file in the at least one of the files; Based on the path information of the second file, determine 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; When the configuration identifier 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; the ADS of the second file includes the identifier information of the second file.

3. The method according to claim 2, characterized in that, After creating the ADS of the second file, the method further includes: The path information and identification information of the second file are sent to the first database; 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.

4. The method according to claim 3, characterized in that, After sending the path information and the identifier information of the second file to the first database, the method further includes: Obtain the path information and identifier information of the third file; the third file is a file in the second field. Based on the path information of the third file, determine 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 identifier information exists in the ADS of the target file, delete the ADS of the target file.

5. The method according to claim 4, characterized in that, The method further includes: If the third file identification information is not found 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 identifier information in the ADS of the fourth file in the second field is the same as the third file identifier information, then delete the ADS of the fourth file.

6. The method according to any one of claims 1-5, characterized in that, Before obtaining the identifier 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, 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, wherein 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; the target directory includes: a preset directory, the parent directory of the preset directory, and the subdirectories of the preset directory; If the target directory does not include the first information, then a target domain is created in the preset directory.

7. A device for determining a file path, characterized in that, The device includes an acquisition unit and a processing unit: The acquisition unit is used to acquire the 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 the 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 configured to set the target path information as the path information of the preset file; The acquisition unit is further configured to acquire the identification information of the first field; the first field is used to identify the coverage area of ​​the folder to which the preset file belongs; The processing unit is further configured to query the file identification information in the ADS of each file in the at least one file in the first domain based on the identification information of the preset file.

8. A device for determining a file path, characterized in that, include: A processor and a memory; wherein the memory is used to store computer execution instructions, and when the file path determination device is running, the processor executes the computer execution instructions stored in the memory to cause the file path determination device to perform the method for determining a file path according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed by a file path determination device, cause the computer to perform the method for determining a file path as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Apparatus and method for storing and managing data

    CN101082930A

  • Path query method, terminal and computer readable storage medium

    CN108038114A