CN105589888B - Method and device for managing files in equipment - Google Patents

Method and device for managing files in equipment Download PDF

Info

Publication number
CN105589888B
CN105589888B CN201410579090.4A CN201410579090A CN105589888B CN 105589888 B CN105589888 B CN 105589888B CN 201410579090 A CN201410579090 A CN 201410579090A CN 105589888 B CN105589888 B CN 105589888B
Authority
CN
China
Prior art keywords
file
file information
attributes
subset
information set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410579090.4A
Other languages
Chinese (zh)
Other versions
CN105589888A (en
Inventor
吕何平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201410579090.4A priority Critical patent/CN105589888B/en
Priority to PCT/CN2015/071498 priority patent/WO2015184830A1/en
Publication of CN105589888A publication Critical patent/CN105589888A/en
Application granted granted Critical
Publication of CN105589888B publication Critical patent/CN105589888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a flow chart and a device of a method for managing files in equipment, which comprises the following steps: when equipment is started, file attributes meeting a preset first statistical strategy in the file attributes of each file are obtained, wherein the first statistical strategy comprises the following steps: a main file information set in the memory of the device, and file attributes to be counted; and generating a File Identifier (FID) which uniquely represents the file for each file, and adding a file information subset containing the generated FID and the obtained file attribute in the main file information set. By the technical scheme provided by the invention, the efficiency of realizing the advanced function is effectively improved when the advanced function of file management is provided, such as global screening based on file attributes, so that the user experience of file management is better improved.

Description

Method and device for managing files in equipment
Technical Field
The present invention relates to file management technologies, and in particular, to a method and an apparatus for managing files in a device with an operating system.
Background
As is well known, devices (hereinafter, a device in which an operating system is installed will be simply referred to as a device for convenience of description) such as a mobile terminal, a tablet computer, a computer, and the like, which are installed with operating systems such as a Windows (Windows) operating system of microsoft corporation, an Android (Android) operating system of google corporation, an apple phone operating system (iOS) of apple corporation, and the like, are widely used in various fields of production and life. In these devices, it is often necessary to store a large number of files, and file management becomes a fundamental function that various operating systems must provide. The operating system typically manages and displays the file directories in a file tree structure that is maintained by the operating system through a file index table on a memory of the device, such as a hard disk. In order to improve the efficiency and flexibility of file management, various file management software running on an operating system is pushed to the market.
Currently, the file management software on the market generally provides the related functions of file management by reading the file index table to display the tree structure of the file. These functions typically include: displaying all directories and files under any directory in the file tree structure, displaying file attributes of the selected files such as file size, modification date, type and the like, and displaying files of which the file attributes contain keywords for screening set by a user in all files under the file tree structure when the user starts global screening based on the file attributes. At present, when the file management software in the market provides the above functions, the file index table needs to be read once or more than once, and for some advanced file management functions such as global screening based on file attributes, the file attributes in the file header of the corresponding file in the memory need to be read according to the position information of the file in the read file index table. It is obvious that, when providing the advanced function of file management, the existing file management software needs to access the file index table on the memory once or more than once and needs to access the file header on the memory for each file to acquire the file attribute, when needing to continuously access hundreds of files or even more, because a large amount of or even mass of access memory is needed and the access time of the memory is difficult to reduce by one order of magnitude, the access time of the memory becomes a main hindering factor for efficiently providing the advanced function of file management when the access amount is increased by one or more than one order of magnitude, so that the existing file management software is often efficient in providing the advanced function of file management, and affects the user experience of file management.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a device for managing files in equipment, which can effectively improve the efficiency of realizing the advanced function of file management, thereby better improving the user experience of file management.
In order to achieve the purpose of the invention, the invention discloses a method for managing files in equipment, which comprises the following steps:
when equipment is started, file attributes meeting a preset first statistical strategy in the file attributes of each file are obtained; wherein the first statistical strategy comprises: a main file information set in the memory of the device, and file attributes to be counted;
and generating a File Identifier (FID) which uniquely represents the file for each file, and adding a file information subset containing the generated FID and the obtained file attribute in the main file information set.
The first statistical strategy requires that at least file locations be included in the statistical file attributes.
Further, the method of the invention also comprises the following steps:
when the equipment is started, acquiring file attributes which meet a preset second statistical strategy from the file attributes of each file; wherein the second statistical strategy comprises: one or more slave file information sets in the memory of the equipment and file attributes to be counted;
correspondingly, after generating the FID uniquely representing the file, the method of the present invention further comprises:
for each file, a subset of file information containing the generated FID and the obtained file attributes is added from the file information set.
Further, in an embodiment of the present invention, the method further comprises:
when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy;
and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, in another embodiment of the present invention, the method further comprises:
when a broadcast message informing file attribute updating is detected, determining the main file information set and/or the file information subset to be updated in the auxiliary file information set according to the updating content extracted from the broadcast message and the first statistical strategy and/or the second statistical strategy;
and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, the method of the invention also comprises the following steps:
when a file screening message is received, extracting a file attribute group sequence containing one or more groups of file attributes from the file screening message; each group of file attributes comprises one or more file attributes counted in the same slave file information set;
determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; wherein N is an integer with a numerical value of the number of file attribute groups in the file attribute group sequence;
determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
The invention also discloses a device for managing files in equipment, which comprises a reading unit and a newly-added unit, wherein,
the reading unit is used for acquiring file attributes meeting a preset first statistical strategy in the file attributes of each file when equipment is started; wherein the first statistical strategy comprises: a main file information set in the memory of the device, and file attributes to be counted;
and the adding unit is used for generating a file identifier FID (file identifier) uniquely representing the file for each file and adding a file information subset containing the generated FID and the file attribute from the reading unit in the main file information set.
The first statistical strategy requires that at least file locations be included in the statistical file attributes.
Further, the reading unit is further configured to: when the equipment is started, acquiring file attributes which meet a preset second statistical strategy from the file attributes of each file; wherein the second statistical strategy comprises: one or more slave file information sets in the memory of the equipment and file attributes to be counted;
correspondingly, the newly added unit is further configured to: for each file, a subset of file information containing the generated FID and the file attribute from the reading unit is added from the file information set.
Further, in an embodiment of the present invention, the apparatus further includes an updating unit, configured to: when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, in another embodiment of the present invention, the apparatus further includes an updating unit, configured to: when a broadcast message informing file attribute updating is detected, determining the main file information set and/or the file information subset to be updated in the auxiliary file information set according to the updating content extracted from the broadcast message and the first statistical strategy and/or the second statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, the apparatus of the present invention further comprises a screening unit, configured to:
when a file screening message is received, extracting a file attribute group sequence containing one or more groups of file attributes from the file screening message; each group of file attributes comprises one or more file attributes counted in the same slave file information set;
determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; wherein N is an integer with a numerical value of the number of file attribute groups in the file attribute group sequence;
determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
Compared with the prior art, the technical scheme of the invention comprises the following steps: when equipment is started, file attributes meeting a preset first statistical strategy in the file attributes of each file are obtained, wherein the first statistical strategy comprises the following steps: a main file information set in the memory of the device, and file attributes to be counted; and generating a File Identifier (FID) which uniquely represents the file for each file, and adding a file information subset containing the generated FID and the obtained file attribute in the main file information set. Because the access time of the memory is at least less than one order of magnitude than the access time of the accessor, the advanced functions of file management, such as global screening based on file attributes, are provided by reading the main file information set and the auxiliary file information set in the memory, so that the efficiency of realizing the advanced functions of file management is effectively improved, and the user experience of file management is better improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart of a method of managing files in an apparatus of the present invention;
FIG. 2 is a flowchart of the implementation of global screening based on file attributes in the method of the present invention;
FIG. 3 is a schematic diagram of the structure of the device for managing files in the apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for managing files in the device of the present invention, as shown in fig. 1, including:
step 101: when the equipment is started, the file attributes meeting a preset first statistical strategy in the file attributes of each file are obtained.
Wherein the first statistical strategy comprises: the main file information set in the memory of the device, the file attribute to be counted. The first statistical strategy requires that at least file locations, such as file path information, be included in the statistical file attributes.
The method specifically comprises the following steps: when the device is started, reading the file attributes of each file in the memory of the device according to a file index table provided by an operating system, and extracting the file attributes meeting a first statistical strategy from the read file attributes.
The specific implementation of this step is a routine technical means for those skilled in the art, and is not described herein again.
Step 102: and generating a File Identifier (FID) which uniquely represents the file for each file, and adding a file information subset containing the generated FID and the obtained file attribute in the main file information set.
Wherein generating the FID may include: the FID is generated by a coding method of sequential coding.
The specific implementation of adding the file information subset including the generated FID and the obtained file attribute to the main file information set may be implemented by using a database technology, which belongs to a conventional technical means of those skilled in the art and is not described herein again.
In one embodiment of the present invention, the master file information set stores the tree structure of the files and the file attributes of each file, so that efficient file management can be achieved through the master file information set.
Further, the air conditioner is provided with a fan,
the method of the invention may further comprise the steps of: and when the equipment is started, acquiring the file attributes meeting a preset second statistical strategy from the file attributes of each file.
Wherein the second statistical strategy comprises: one or more file attributes to be counted from the file information set in the memory of the device.
Accordingly, the number of the first and second electrodes,
after generating the FID uniquely representing the file, the method of the present invention may further comprise the steps of: for each file, a subset of file information containing the generated FID and the obtained file attributes is added from the file information set.
In embodiment 1 of the present invention, the file information subset in the master file information set includes an FID and a file location, the file information subset in the slave file information set 1 includes an FID, a file name, and an extension, the file information subset in the slave file information set 2 includes an FID, a modification type, a time, and additional information, and the file information subset in the slave file information set 3 includes an FID, a file type, and a name of an application program that opened a file last time.
The modification type in the file information subset in the file information set 2 may be new creation or modification, the time may be time corresponding to the new creation or modification of the file, and the additional information may be a main body of the new creation or modification of the file, for example, the main body may be system generation, bluetooth transmission, or wireless local area network transmission; the file type from the subset of file information in the file information set 3 may be a text file or a picture file, etc.
In the above embodiment, it is obvious that each file attribute counted from the file information set has a correlation, and this way of putting the correlated file attributes into a statistics from the file information set according to the second statistical policy can improve the efficiency of managing the file attributes.
It will be understood by those skilled in the art that the subset of file information in the master and slave file information sets corresponding to the same file contain the same FID, and thus, they are correlated by the FID.
Further, in the method of the present invention as shown in fig. 1, the following 2 steps may also be included:
1) when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy;
2) and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Similarly, on the basis of the method of the present invention as shown in fig. 1, the method of the present invention including the step of processing related to the file information set may further include the following 2 steps:
1) when a broadcast message informing of file attribute updating is detected, determining a main file information set and/or a file information subset to be updated in the sub file information set according to the updating content extracted from the broadcast message and the first statistical strategy and/or the second statistical strategy.
It will be appreciated by those skilled in the art that the broadcast message informing of the file attribute update may be obtained from the operating system.
Determining the master file information set and/or the subset of file information to be updated from the file information set in this step may include: and determining the main file information set and/or the file information subset containing the extracted file position in the file information set according to the extracted file position in the updated content.
2) And updating the file attribute corresponding to the extracted updated content in the determined file information subset.
It should be noted that the method of the present invention may further include a processing procedure when detecting a broadcast message notifying the addition/deletion of the file. The processing flow is similar to the processing flow when the method of the present invention detects the broadcast message notifying the update of the file attribute, and on the basis of updating the related processing flow, a person skilled in the art can easily implement the related processing flow of adding/deleting, and details are not repeated here.
Compared with the file management software on the market at present, the method can more efficiently realize the common functions of file management, such as displaying the file attributes of the selected files. When the method of the present invention is used to display the file attributes of the selected file, more file attributes can be efficiently displayed.
Compared with the file management software in the current market, the method can also realize the high-level functions of file management, such as global screening based on file attributes, and effectively improve the efficiency of providing the high-level functions of file management.
When a user wants to use global filtering based on file attributes, the user sets a directory for filtering and one or more keywords for filtering. In embodiment 1 of the present invention, it is assumed that the set keywords are: the time is within one day, the file type is a text file, and the extension name is doc.
Fig. 2 is a flowchart for implementing global screening based on file attributes in the embodiment of the present invention, and as shown in fig. 2, the flowchart includes:
step 201: when a file screening message is received, a sequence of file attribute groups is extracted from the file screening message, wherein the sequence of file attribute groups comprises one or more groups of file attributes.
Wherein, each group of file attributes comprises one or more file attributes counted in the same slave file information set.
In embodiment 1 of the present invention, it is assumed that the extracted file attribute group sequence is { (time: within one day), (file type: text file), (extension: doc) }, where the file attribute in the parentheses is a group of file attributes.
Step 202: determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; where N is an integer having a value of the number of groupings of file attributes in the sequence of file attribute groups.
In embodiment 1 of the present invention, the first slave file information set is the slave file information set 2, the second slave file information set is the slave file information set 3, and the third slave file information set is the slave file information set 1.
Step 203: determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
In embodiment 1 of the present invention, step 203 is executed to determine a file information subset in a master file information set and a slave file information set corresponding to each screened file whose file attribute satisfies { (time: within one day), (file type: text file), (extension: doc) }. As is easily realized by a person skilled in the art, the relevant information of the screened files, such as the names of the files, the positions of the files and the like, is displayed according to the file attributes in the determined file information subset.
It should be noted that, in embodiment 1 of the present invention, relevant file attributes are put into a slave file information set for statistics according to a second statistical policy, so that when performing global screening based on file attributes, it is possible to reduce accesses from the file information set as much as possible, thereby better improving access efficiency.
Fig. 3 is a schematic diagram of a structure of a device for managing files in the apparatus of the present invention, as shown in fig. 3, the device of the present invention includes a reading unit and a newly-added unit, wherein,
and the reading unit is used for acquiring the file attributes meeting a preset first statistical strategy in the file attributes of each file when the equipment is started.
Wherein the first statistical strategy comprises: the main file information set in the memory of the device, the file attribute to be counted. The first statistical strategy requires that at least file locations, such as file path information, be included in the statistical file attributes.
And the adding unit is used for generating a file identifier FID (file identifier) uniquely representing the file for each file and adding a file information subset containing the generated FID and the file attribute from the reading unit in the main file information set.
Further, the air conditioner is provided with a fan,
in an embodiment of the present invention, the apparatus further includes an updating unit, configured to: when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, the air conditioner is provided with a fan,
the reading unit is further configured to: and when the equipment is started, acquiring the file attributes meeting a preset second statistical strategy from the file attributes of each file.
Wherein the second statistical strategy comprises: one or more file attributes to be counted from the file information set in the memory of the device.
Accordingly, the number of the first and second electrodes,
the newly added unit is also used for: for each file, a subset of file information containing the generated FID and the file attribute from the reading unit is added from the file information set.
Further, the air conditioner is provided with a fan,
in another embodiment of the present invention, the apparatus further includes an updating unit, configured to: when a broadcast message informing file attribute updating is detected, determining a main file information set and/or a file information subset to be updated in a secondary file information set according to updating contents extracted from the broadcast message and a first statistical strategy and/or a second statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
Further, the air conditioner is provided with a fan,
the device of the invention also comprises a screening unit used for:
when a file screening message is received, extracting a file attribute group sequence containing one or more groups of file attributes from the file screening message; each group of file attributes comprises one or more file attributes counted in the same slave file information set;
determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; wherein N is an integer with a numerical value of the number of file attribute groups in the file attribute group sequence;
determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. A method for managing files in a device, comprising:
when equipment is started, acquiring file attributes meeting a preset first statistical strategy and a preset second statistical strategy from the file attributes of each file; wherein the first statistical strategy comprises: a main file information set in the memory of the device, and file attributes to be counted; the second statistical strategy comprises: one or more slave file information sets in the memory of the equipment and file attributes to be counted; the file attributes required to be counted by the first statistical strategy at least comprise file positions;
generating a File Identifier (FID) which uniquely represents a file for each file, and adding a file information subset containing the generated FID and the obtained file attribute in a main file information set and a slave file information set;
when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
2. The method of claim 1, further comprising:
when a broadcast message informing file attribute updating is detected, determining the main file information set and/or the file information subset to be updated in the auxiliary file information set according to the updating content extracted from the broadcast message and the first statistical strategy and/or the second statistical strategy;
and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
3. The method of claim 2, further comprising:
when a file screening message is received, extracting a file attribute group sequence containing one or more groups of file attributes from the file screening message; each group of file attributes comprises one or more file attributes counted in the same slave file information set;
determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; wherein N is a numerical value and is an integer of the number of file attribute groups in the file attribute group sequence;
determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
4. An apparatus for managing files in a device, the apparatus comprising a reading unit and an adding unit, wherein,
the reading unit is used for acquiring file attributes meeting a preset first statistical strategy and a preset second statistical strategy in the file attributes of each file when equipment is started; wherein the first statistical strategy comprises: a main file information set in the memory of the device, and file attributes to be counted; the second statistical strategy comprises: one or more slave file information sets in the memory of the equipment and file attributes to be counted; the file attributes required to be counted by the first statistical strategy at least comprise file positions;
the newly-added unit is used for generating a File Identifier (FID) which uniquely represents the file for each file, and adding a file information subset which contains the generated FID and the file attribute from the reading unit in the main file information set and the auxiliary file information set;
an update unit configured to: when a broadcast message informing file attribute updating is detected, determining a file information subset to be updated in the main file information set according to updating contents extracted from the broadcast message and the first statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
5. The apparatus of claim 4, wherein the updating unit is further configured to: when a broadcast message informing file attribute updating is detected, determining the main file information set and/or the file information subset to be updated in the auxiliary file information set according to the updating content extracted from the broadcast message and the first statistical strategy and/or the second statistical strategy; and updating the file attribute corresponding to the extracted updated content in the determined file information subset.
6. The apparatus of claim 5, further comprising a screening unit for:
when a file screening message is received, extracting a file attribute group sequence containing one or more groups of file attributes from the file screening message; each group of file attributes comprises one or more file attributes counted in the same slave file information set;
determining a first slave file information set which is counted by the first group of file attributes according to a second statistical strategy aiming at the first group of file attributes in the file attribute group sequence; repeating the steps until an Nth slave file information set with an Nth group of file attributes is determined; wherein N is a numerical value and is an integer of the number of file attribute groups in the file attribute group sequence;
determining a first subset of file information of the set of file information that includes a first set of file attributes; for each FID in the determined subset of file information: setting M to be 2, reading a corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes, wherein M is an integer which is greater than or equal to 2 and less than or equal to N; if the file information subset contains the M, adding 1 to the M, returning to execute reading the corresponding Mth file information subset in the slave file information set according to the current FID, and determining whether the read file information subset contains the Mth group of file attributes; if the file information is contained and M is equal to N, reading a file information subset in the corresponding main file information set according to the current FID, and determining the file corresponding to the current FID as a screened file; if not, the process for the current FID ends.
CN201410579090.4A 2014-10-24 2014-10-24 Method and device for managing files in equipment Active CN105589888B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410579090.4A CN105589888B (en) 2014-10-24 2014-10-24 Method and device for managing files in equipment
PCT/CN2015/071498 WO2015184830A1 (en) 2014-10-24 2015-01-23 Method and device for managing file in apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410579090.4A CN105589888B (en) 2014-10-24 2014-10-24 Method and device for managing files in equipment

Publications (2)

Publication Number Publication Date
CN105589888A CN105589888A (en) 2016-05-18
CN105589888B true CN105589888B (en) 2020-10-16

Family

ID=54766064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410579090.4A Active CN105589888B (en) 2014-10-24 2014-10-24 Method and device for managing files in equipment

Country Status (2)

Country Link
CN (1) CN105589888B (en)
WO (1) WO2015184830A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258953B (en) * 2020-01-08 2024-04-30 中联财联网科技有限公司 Method for normalizing conversion of financial data into evaluation data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base
CN103577500A (en) * 2012-08-10 2014-02-12 腾讯科技(深圳)有限公司 Method for carrying out data processing by distributed file system and distributed file system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4876734B2 (en) * 2006-06-22 2012-02-15 富士ゼロックス株式会社 Document use management system and method, document management server and program thereof
JP2009042856A (en) * 2007-08-07 2009-02-26 Fuji Xerox Co Ltd Document management device, document management system, and program
CN100492370C (en) * 2007-12-14 2009-05-27 清华大学 Document management method facing to integration business model
CN101630322B (en) * 2009-08-26 2011-04-13 中国人民解放军信息工程大学 Method for storing and accessing file set under tree directory structure in database
CN101719141B (en) * 2009-12-24 2011-09-07 成都市华为赛门铁克科技有限公司 File processing method and system based on directory object
CN102289451A (en) * 2011-06-17 2011-12-21 奇智软件(北京)有限公司 Method and device for searching files or folders
JP5836706B2 (en) * 2011-08-31 2015-12-24 キヤノン株式会社 Information processing apparatus, document access method, and computer program
JP6013895B2 (en) * 2012-12-12 2016-10-25 株式会社日立情報通信エンジニアリング File management system and method, program
CN103902260B (en) * 2012-12-25 2016-08-31 华中科技大学 A kind of forecasting method of object-based file system
US9183246B2 (en) * 2013-01-15 2015-11-10 Microsoft Technology Licensing, Llc File system with per-file selectable integrity
JP5907101B2 (en) * 2013-03-22 2016-04-20 富士ゼロックス株式会社 Document management apparatus and program
US9075722B2 (en) * 2013-04-17 2015-07-07 International Business Machines Corporation Clustered and highly-available wide-area write-through file system cache
CN103646063B (en) * 2013-11-27 2016-08-17 中国航天科技集团公司第五研究院第五一三研究所 A kind of spaceborne high speed document management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577500A (en) * 2012-08-10 2014-02-12 腾讯科技(深圳)有限公司 Method for carrying out data processing by distributed file system and distributed file system
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《一种属性文件系统的设计与实现》;赖广全;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130215;第2013年卷(第02期);第I138-1113页 *
一种面向基于属性存取的文件系统的设计与实现;谢琳峰 等;《计算机科学》;20070326;第2007年卷(第34(1)期);第255-258页 *

Also Published As

Publication number Publication date
WO2015184830A1 (en) 2015-12-10
CN105589888A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN107077483B (en) Synchronization of shared folders and files
CN106325933B (en) Batch data synchronous method and device
CN105677250B (en) The update method and updating device of object data in object storage system
CN107870981B (en) Electronic device, data sheet filing method and storage medium
CN105760199B (en) A kind of application resource loading method and its equipment
CN110413282B (en) Redundant resource processing method, device, equipment and storage medium
CN103810212A (en) Automated database index creation method and system
EP3125501A1 (en) File synchronization method, server, and terminal
CN112000911B (en) Page management method, device, electronic equipment and storage medium
CN102999527B (en) Multidate information method for pushing and system in SNS network
CN108363684A (en) List creation method, device and server
CN106155789A (en) A kind of application freezing method and mobile terminal
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
CN115048254B (en) Simulation test method, system, equipment and readable medium for data distribution strategy
CN110515895B (en) Method and system for carrying out associated storage on data files in big data storage system
CN106250501B (en) Report processing method and reporting system
CN105589888B (en) Method and device for managing files in equipment
CN110505290A (en) A kind of synchronous method and device of contact information
CN103365892A (en) Method and device for processing multiple contact objects
CN105528247B (en) Information processing method and client
CN112416934A (en) hive table incremental data synchronization method and device, computer equipment and storage medium
CN110300222B (en) Short message display method, system, terminal equipment and computer readable storage medium
CN101374307A (en) Method and apparatus for updating digital content information of mobile equipment
CN102662995B (en) A kind of method that quick position mobile phone application data upgrades
CN107422991B (en) Storage strategy management system

Legal Events

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