File Storage Location Determination Using Candidate Path Matching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for determining the storage location of a file in a terminal are inaccurate due to dependence on application versions and fail to correctly identify storage locations when multiple files are open in a single process or when applications are not activated.

Innovation Solution

A method and apparatus for determining the storage location of a file by determining multiple candidate paths using various methods such as object linking and embedding interface invoking, file searching, reading of information about recently used files, and command line parsing, and then processing file information to calculate a matching degree for each candidate path, selecting the path with the highest matching degree as the storage location.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional methods (parsing command line or invoking program interface) are used to determine file storage location, then the process is simple, but the accuracy of determining file storage location is low

Engineering Contradiction:
Improveaccuracy of determining file storage locationVSAvoidcomplexity of determining method
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the file path determination process into multiple independent methods: OLE interface invoking, file searching, reading recently used files information, and command line parsing. Each method generates candidate paths independently, and they are combined to form a comprehensive set of candidates. This segmentation allows the system to leverage multiple approaches without requiring any single method to be overly complex, while collectively achieving high accuracy in file location determination.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a universal file path determination mechanism that can handle multiple scenarios through a single integrated system. The system universally applies to different file types, application states (activated or not), and multiple open files within a single process. By combining multiple candidate path generation methods and using a unified matching degree calculation approach, the system achieves multi-functionality without requiring separate solutions for each scenario, thus balancing accuracy with manageable complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Measurement precision

If multiple candidate paths are determined and matching degree is calculated, then the accuracy of determining file storage location is improved, but the computational complexity increases

Engineering Contradiction:
Improveaccuracy of determining file storage locationVSAvoidcomputational resources consumed
Core Design Contradiction:
Measurement precisionVSPower

Solution Approach 1:

The patent performs preliminary actions by generating multiple candidate paths before the actual file location determination is needed. The system proactively collects paths from OLE interfaces, file searching, recently used files, and command line parsing in advance, storing them as candidate paths. When file transfer is initiated, the system only needs to calculate matching degrees for pre-collected candidates rather than performing comprehensive searches, significantly reducing real-time computational burden while maintaining high accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes the parameter of path verification from binary (correct/incorrect) to a continuous matching degree parameter. By calculating matching degrees between candidate paths and actual file locations using file information, the system transforms the determination problem into a ranked selection problem. This parameter change allows for more nuanced evaluation of path validity and enables the system to handle uncertainty in file locations more effectively, improving accuracy without requiring exhaustive verification of each candidate.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12222897B2File storage location determining method and apparatus, and terminal
Publication Date: 2025.02.11 HUAWEI TECH CO LTD
  • US12222897B2 patent drawing
  • US12222897B2 patent drawing
  • US12222897B2 patent drawing

AI summary

Embodiments of this application are applicable to the field of terminal technologies, and provide a file storage location determining method and apparatus, and a terminal. The method includes: A first terminal determines a plurality of candidate paths corresponding to a target file. Each candidate path points to one file storage location. The first terminal obtains file information of the target file. The first terminal determines, based on the file information and the plurality of candidate paths, a file storage location pointed to by a first candidate path in the plurality of candidate paths as a storage location of the target file. A matching degree of the first candidate path is a highest matching degree in matching degrees of the plurality of candidate paths. According to the foregoing method, accuracy of determining the file storage location is improved.