CN104765740B - File scanning control method and device - Google Patents
File scanning control method and device Download PDFInfo
- Publication number
- CN104765740B CN104765740B CN201410004321.9A CN201410004321A CN104765740B CN 104765740 B CN104765740 B CN 104765740B CN 201410004321 A CN201410004321 A CN 201410004321A CN 104765740 B CN104765740 B CN 104765740B
- Authority
- CN
- China
- Prior art keywords
- directory
- file
- file directory
- changed
- parent
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a method and a device for controlling file scanning, wherein the method comprises the following steps: scanning a storage medium to acquire time information of a parent file directory; and determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change. According to the control method for file scanning, after the parent file directory is determined to be unchanged, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Description
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for controlling file scanning.
Background
In the field of information technology, a file refers to a computer file. A computer file belongs to a kind of file, and unlike a common file carrier, a computer file is a collection of information stored on a device with a storage medium as a carrier. The file may be a text document, a picture, a program, and so on. Files typically have a three-letter file extension for indicating the file type
Documents can be classified by nature and use as: system files, user files. The method is divided into the following steps according to the logic structure of the file: streaming files, recorded files. The storage period according to the information is divided into: temporary documents, permanent documents, archive documents. The method is divided into the following steps according to the physical structure of the file: sequence file, link file, index file, HASH file, index sequence file. The access modes of the files are divided into: sequential access files, random access files. Files in the UNIX system (an operating system) can be classified as: normal files, directory files, special files. The classification of files in the management information system may be as follows: the method is classified into the following types according to the purposes of the files: the main file, the processing file, the working file and the turnover file (storage and other files) are classified into a sequence file, an index file and a direct access file according to the organization mode of the files.
The access mode of the file is determined by the nature of the file and the use of the file by the user. The access method comprises the following steps: 1. and (4) sequential access. 2. And (4) random access. Wherein the tape employs sequential access. The disk employs random access. The physical structure of the file includes: 1. a sequential structure; 2. a linking structure; 3. an index structure; 4. a Hash structure; 5. index order structure, etc. If the index is three-level index, the maximum file length is as follows: 256 × 256+256+ 10; one feature of file systems is "access by name".
A directory of files is an ordered set of file control blocks. The directory file is a recordable file with a fixed length. Most operations employ a multi-level directory mechanism, referred to as a tree directory structure. There is only one path from the root directory to any non-leaf node or leaf node. The system provides the user with a currently used working directory, called the current directory. The directory entries are divided into: name directory entry, basic directory entry. The directory files are also classified into a title directory file and a basic directory file. The file access control is embodied by three aspects of sharing, protection and confidentiality of the file. The sharing of a file is that one file may allow multiple users to use it together.
What the files are, the classification of the files, the access of the files, and the directories of the files are described in more detail above. The present document is primarily concerned with variations of the document. It has been described above that a file is a collection of information stored on a device on a storage medium. Then, the information set in the file may be changed, and the information of whether the file/file content has sent a change is also widely used. How to quickly and accurately determine whether a file is changed or not, and particularly, how to quickly and accurately find the changed file in a large number of files becomes important.
At present, in a large number of files, the scheme for finding a changed file is generally as follows: and scanning all files in all file directories in the storage medium on the full disk, acquiring the time information of each file, and determining whether each file is changed or not according to the time information of the files.
With the above scheme, all files in all file directories in the storage medium need to be scanned one by one, that is, an operation needs to be performed on each file in the storage medium. Therefore, the above scheme is inefficient in determining the changed file.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling file scanning, which are used for improving the efficiency of determining changed files.
A control method for file scanning comprises the following steps:
scanning a storage medium to acquire time information of a parent file directory;
and determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change.
A control device for document scanning, comprising:
the information acquisition unit is used for scanning the storage medium and acquiring the time information of the parent file directory;
a change determining unit for determining whether the parent file directory is changed according to the time information of the parent file directory;
and the scanning control unit is used for controlling the information acquisition unit to skip scanning of all the child file directories of the parent file directory if the change determination unit determines that the parent file directory is not changed.
According to the technical scheme, the embodiment of the invention has the following advantages: after determining that the parent file directory is not changed, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile phone according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for controlling file scanning, as shown in fig. 1, including:
101: scanning a storage medium to acquire time information of a parent file directory;
in the embodiment of the invention, the relationship between file directories is limited by adopting a parent file directory and a child file directory, wherein the parent file directory is a higher-level directory of the child file directories, one or more child file directories can be arranged in one parent file directory, the number of the child file directories is variable, and the number of the parent file directories does not influence the implementation of the embodiment of the invention. The "child file directory" may also have its own "child file directory", which is then the "parent file directory" of its own "child file directory". Thus, "parent file directory" and "child file directory" are relative concepts, not absolute concepts, and are not specific to a certain class of file directory, and no other understanding should be made of the above "parent file directory" and "child file directory".
Optionally, an embodiment of the present invention further provides a specific implementation manner for scanning a storage medium to obtain time information of a parent file directory, where the embodiment of the present invention is performed in a manner of scanning from a first-level directory step by step, and the method includes: the scanning the storage medium, and acquiring the time information of the parent file directory includes: and scanning the storage medium, and acquiring the time information of the first-level directory as the time information of the parent file directory.
As shown in table 1 below, the list is exemplary as follows:
directory | Belonging stage |
C:\ | First level directory |
C:\Program Files | Second level directory |
C:\Program Files\Tencent | Third level directory |
C:\Program Files\SogouInput | Third level directory |
G:\ | First level directory |
G picture | Second level directory |
D:\ | First level directory |
D:\Media | Second level directory |
… | … |
In table 1 above, there are three first-level directories, each of the first-level directories has a second-level directory, and the second-level directory has a parent-child relationship with the first-level directory, for example: the subfile directory of 'C: \ Program Files' has 'C: \ Program Files', the second level directory 'C: \ Program Files' is used as the father file directory, and the subfile directory of 'C: \ Program Files' has 'C: \ Program Files \ Tencent' and 'C: \ Program Files \ SogouInput'. The above is only an example, the actual file directory is much more complex than that shown in table 1, and the number of directories at each level is large, and the above example should not be taken as a limitation of the file directory in the embodiment of the present invention. The above table will be further explained in the following embodiments.
Optionally, an embodiment of the present invention further provides a time scheme for specifically obtaining time information of a file directory, where an implementation scheme preferably adopted in an embodiment of the present invention is implemented by an Opendir function, Dir is a structure of a file directory data item, and the Opendir function is used to open a directory and establish a directory stream, return a pointer pointing to the Dir structure, and read a directory data item. It should be noted that, as long as the time information of the file directory can be acquired, the implementation of the embodiment of the present invention is not affected, and therefore, the embodiment of the present invention does not uniquely limit the specific acquisition manner, and the time information acquisition manner provided in this embodiment is specifically as follows: the obtaining of the time information of the parent file directory includes:
and calling a structure body function (Opendir function) for opening the file directory data item to acquire the time information of the parent file directory in the structure body of the directory data item.
102: and determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change.
Based on the embodiment of the invention, it can be determined that after the parent file directory is determined not to be changed, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the parent file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", scanning of the second level directory "C: \ Program Files", and the third level directories "C: \ Program Files \" Tencent "and" C \\ \ Program Files \ "SogouInput" can be skipped.
The above embodiment does not describe the processing mode after the parent file directory is changed, and the processing mode after the parent file directory is changed can search for the changed files by adopting a one-by-one scanning mode, which does not affect the skipping of the parent file directory which is not changed, and therefore does not affect the achievement of the above beneficial effects, and therefore, the processing mode after the parent file directory is changed in the embodiment of the present invention can be implemented without unique limitation. However, the embodiment of the present invention still provides a preferred implementation scheme to control the scan skip operation of the sub-file directory, thereby further improving the efficiency of determining the changed file. The specific method comprises the following steps: further, the method further comprises:
if the parent file directory changes, taking the child file directory of the parent file directory as the parent file directory to continue executing: acquiring time information of a parent file directory; determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change; and determining whether the file is changed according to the time information of the file until determining the changed directory in the lowest directory, acquiring the time information of the file under the changed directory in the lowest directory, and determining whether the file is changed according to the time information of the file.
Generally, it is useful to find a file that has changed, which does not mean that it is useless to determine that the file has not changed, and based on the implementation scheme for determining a file that has changed provided by the embodiment of the present invention, the embodiment of the present invention also provides a scheme for quickly determining a file that has not changed, which is specifically as follows: further, if the parent file directory is not changed, the method further includes:
it is determined that the files under all child file directories within the parent file directory have not changed.
By adopting the scheme of the embodiment, as long as one file directory is determined to be unchanged, the file in the file directory can be determined to be unchanged, and it can be understood that the files in the file directory comprise all the files in all the subfiles in the file directory, so that batch determination is realized, and the subfiles and the files are not required to be scanned one by one, so that the efficiency of determining the unchanged files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", it can be determined that all Files within the second level directory "C: \ Program Files", and the third level directories "C: \programfiles \" Tencent "and" C: \ Program Files \ "SogouInput" have not changed.
The above scheme is very effective for file changes caused by local device operations, but misjudgment may occur for file changes caused by third-party devices, in order to solve the possible misjudgment, for example: the time information of the file directory in the memory card of the mobile phone with Android (operating system) platform does not necessarily change along with the change of the directory content. The embodiment of the invention provides a further solution, which comprises the following specific steps: further, skipping scanning of all child file directories of the parent file directory may be preceded by:
determining whether the parent file directory is modified by a second device; the device where the storage medium is located is a first device, and the other devices except the first device are second devices; if not, skipping the scanning of all the child file directories of the parent file directory, and if so, determining that the parent file directory is changed.
Based on the above file change caused by the third-party device, the embodiment of the present invention provides an application scenario with a wide application range, and it should be noted that many application scenarios of file change caused by the third-party device are provided, for example: personal computer to tablet computer, Personal computer to PDA (Personal Digital Assistant), etc., therefore, the examples in this embodiment should not be construed as the only limitations of the embodiments of the present invention, and the specific examples are as follows: the storage medium is a mobile phone memory card, the first device is a mobile phone, and the second device is a personal computer.
Optionally, an embodiment of the present invention further provides a specific implementation scheme for how to determine whether the parent file directory is modified by the second device, which is specifically as follows: the determining whether the parent file directory is altered by the second device comprises: determining whether the parent file directory is modified by a second device according to a locally stored index node (INode); the record information of the index node is used for recording whether the parent file directory is changed by the second device.
The following embodiments will describe the embodiments of the present invention in more detail by taking an application scenario of how to quickly determine whether a file in a memory card of a mobile phone changes. In this embodiment, the manner of obtaining the time information of the file directory is implemented by using an Opendir function. The Dir is a structure of a file directory data item, and the Opendir function is used for opening a directory and establishing a directory stream, and returning a pointer pointing to the Dir structure, so that the directory data item can be read. The directory entry may contain time information for the file directory. I/O (input/output) operation an I/O operation in this embodiment refers to reading or writing a certain sector or a certain segment of a disk.
Because the scheme of scanning the whole disk one by one has low efficiency, all files in the storage are required to be subjected to I/O operation once when the file change in the storage card is found, and the time performance is poor. An embodiment of the present invention provides a method for controlling file scanning, which is used to improve efficiency of determining a changed file, and as shown in fig. 2, a specific process includes the following steps:
201: calling an Opendir function, and reading all Dir directory streams of the mobile phone memory card;
when the first-time execution is carried out, the first-level directory of the mobile phone memory card is traversed, and a method opendir (path) is called, wherein the path is a path of each first-level directory, a directory stream DIR is returned, and information such as a file name under the directory, time data of the directory and the like can be known from a DIR structure body.
202: determining time data in the DIR according to the read Dir directory stream, and judging whether the directory stream time changes or not according to the time data in the DIR; if yes, entering 203, otherwise, entering 204;
based on the stream recording time obtained in step 201, if the directory stream time does not change, it indicates that the file in the directory is not operated at the mobile phone side, that is, does not change. However, it is worth noting that the PC side operates the files in the mobile phone memory card, and it is impossible to determine whether the files in the directory change or not according to the time of the directory stream. It is further determined whether the file in the directory in the memory card of the mobile phone is operated at the PC side in step 204.
203: determining that the file directory corresponding to the directory stream changes, that is, determining that a changed file exists in the file directory corresponding to the directory stream, then further acquiring time data of the subfile directory, and entering 202; until all files are scanned.
204: determining whether a PC terminal modifies the file directory, if so, entering 203; otherwise, entering 205;
the method for determining whether the PC side modifies the file directory may be as follows: if the stored file in the mobile phone is operated at the PC side, whether the file changes or not is judged according to the directory time. For this case, the proposed solution is as follows: the determination is made using an index node (INode). The method specifically comprises the following steps: create a file (for example, create a file with a file name of MyCam. dat) and add it to the memory card, record the Inode of this file; when the PC end operates the stored file, the system reassigns the index node to the file, if the index node is not consistent with the Inode of the previous file, the stored file is proved to be changed.
205: determining that the file directory corresponding to the directory stream is not changed, that is, determining that no changed file exists in the file directory corresponding to the directory stream; the scanning operation of all the sub file directories under the above file directory may be skipped.
The above steps are executed circularly, and the process is finished until all the file directories are scanned, and through the above processes, it can be seen that: after determining that one file directory is not changed, the scanning of the whole file directory and even all the sub-file directories can be skipped, so that the sub-file directories and the files in the file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
The embodiment of the invention not only improves the efficiency of determining the changed files, but also solves the problem caused by asynchronous change of the directory time and the content time, realizes that the directory with changed files can be quickly known by reading the time data of the directory stream without traversing all the files of the memory card every time, the files under the directory are not read any more, and the detection of whether the files are changed or not is only carried out aiming at the unchanged directory, thereby greatly reducing the access time consumption of a magnetic disk.
An embodiment of the present invention further provides a control device for file scanning, as shown in fig. 3, including:
an information acquisition unit 301 configured to scan a storage medium and acquire time information of a parent file directory;
a change determining unit 302, configured to determine whether the parent file directory changes according to the time information of the parent file directory;
a scan control unit 303, configured to control the information obtaining unit 301 to skip scanning of all child file directories of the parent file directory if the change determining unit 302 determines that the parent file directory has not changed.
In the embodiment of the invention, the relationship between file directories is limited by adopting a parent file directory and a child file directory, wherein the parent file directory is a higher-level directory of the child file directories, one or more child file directories can be arranged in one parent file directory, the number of the child file directories is variable, and the number of the parent file directories does not influence the implementation of the embodiment of the invention. The "child file directory" may also have its own "child file directory", which is then the "parent file directory" of its own "child file directory". Thus, "parent file directory" and "child file directory" are relative concepts, not absolute concepts, and are not specific to a certain class of file directory, and no other understanding should be made of the above "parent file directory" and "child file directory".
Based on the embodiment of the invention, it can be determined that after the parent file directory is determined not to be changed, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the parent file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", scanning of the second level directory "C: \ Program Files", and the third level directories "C: \ Program Files \" Tencent "and" C \\ \ Program Files \ "SogouInput" can be skipped.
The above embodiment does not describe the processing mode after the parent file directory is changed, and the processing mode after the parent file directory is changed can search for the changed files by adopting a one-by-one scanning mode, which does not affect the skipping of the parent file directory which is not changed, and therefore does not affect the achievement of the above beneficial effects, and therefore, the processing mode after the parent file directory is changed in the embodiment of the present invention can be implemented without unique limitation. However, the embodiment of the present invention still provides a preferred implementation scheme to control the scan skip operation of the sub-file directory, thereby further improving the efficiency of determining the changed file. The specific method comprises the following steps: further, the information obtaining unit 301 is further configured to, if the change determining unit 302 determines that the parent file directory has changed, continue to execute, as the parent file directory, the following steps that: acquiring time information of a parent file directory; until the change determining unit 302 determines the directory in which the change has occurred in the lowermost directory, and obtains the time information of the file in the directory in which the change has occurred in the lowermost directory;
the change determining unit 302 is further configured to determine whether the file is changed according to the time information of the file acquired by the information acquiring unit 301.
Generally, it is useful to find a file that has changed, which does not mean that it is useless to determine that the file has not changed, and based on the implementation scheme for determining a file that has changed provided by the embodiment of the present invention, the embodiment of the present invention also provides a scheme for quickly determining a file that has not changed, which is specifically as follows: further, the change determining unit 302 is further configured to determine that the files in all the child file directories in the parent file directory have not changed if the change determining unit 302 determines that the parent file directory has not changed.
By adopting the scheme of the embodiment, as long as one file directory is determined to be unchanged, the file in the file directory can be determined to be unchanged, and it can be understood that the files in the file directory comprise all the files in all the subfiles in the file directory, so that batch determination is realized, and the subfiles and the files are not required to be scanned one by one, so that the efficiency of determining the unchanged files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", it can be determined that all Files within the second level directory "C: \ Program Files", and the third level directories "C: \programfiles \" Tencent "and" C: \ Program Files \ "SogouInput" have not changed.
Optionally, an embodiment of the present invention further provides a specific implementation manner for scanning a storage medium to obtain time information of a parent file directory, where the embodiment of the present invention is performed in a manner of scanning from a first-level directory step by step, and the method includes: the information acquiring unit 301 is configured to scan the storage medium and acquire the time information of the first-level directory as the time information of the parent file directory.
In table 1 above, there are three first-level directories, each of the first-level directories has a second-level directory, and the second-level directory has a parent-child relationship with the first-level directory, for example: the subfile directory of 'C: \ Program Files' has 'C: \ Program Files', the second level directory 'C: \ Program Files' is used as the father file directory, and the subfile directory of 'C: \ Program Files' has 'C: \ Program Files \ Tencent' and 'C: \ Program Files \ SogouInput'. The above is only an example, the actual file directory is much more complex than that shown in table 1, and the number of directories at each level is large, and the above example should not be taken as a limitation of the file directory in the embodiment of the present invention.
Optionally, an embodiment of the present invention further provides a time scheme for specifically obtaining time information of a file directory, where an implementation scheme preferably adopted in an embodiment of the present invention is implemented by an Opendir function, Dir is a structure of a file directory data item, and the Opendir function is used to open a directory and establish a directory stream, return a pointer pointing to the Dir structure, and read a directory data item. It should be noted that, as long as the time information of the file directory can be acquired, the implementation of the embodiment of the present invention is not affected, and therefore, the embodiment of the present invention does not uniquely limit the specific acquisition manner, and the time information acquisition manner provided in this embodiment is specifically as follows: the information acquiring unit 301 is configured to call a structure function for opening a file directory data item, and acquire time information of a parent file directory in a structure of the directory data item.
The above scheme is very effective for file changes caused by local device operations, but misjudgment may occur for file changes caused by third-party devices, in order to solve the possible misjudgment, for example: the time information of the file directory in the memory card of the mobile phone with Android (operating system) platform does not necessarily change along with the change of the directory content. The embodiment of the invention provides a further solution, which comprises the following specific steps: further, as shown in fig. 4, the apparatus further includes:
an external determination unit 401 configured to determine whether or not the parent file directory is modified by the second device before the scan control unit 303 controls the information acquisition unit 301 to skip scanning of all child file directories of the parent file directory; the device where the storage medium is located is a first device, and the other devices except the first device are second devices; if not, the scanning control unit 303 controls the information obtaining unit 301 to skip scanning of all the child file directories of the parent file directory, and if so, determines that the parent file directory has changed.
Optionally, an embodiment of the present invention further provides a scheme for determining whether the second device changes the local file, which is specifically as follows: the external determining unit 401 is configured to determine whether the parent file directory is modified by the second device according to a locally stored index node; the index node is used for recording whether the parent file directory is changed by the second device.
Based on the above file change caused by the third-party device, the embodiment of the present invention provides an application scenario with a wide application range, and it should be noted that many application scenarios of file change caused by the third-party device are provided, for example: personal computer to tablet computer, Personal computer to PDA (Personal Digital Assistant), etc., therefore, the examples in this embodiment should not be construed as the only limitations of the embodiments of the present invention, and the specific examples are as follows: optionally, the storage medium is a mobile phone memory card, the first device is a mobile phone, and the second device is a personal computer.
An embodiment of the present invention further provides another file scanning control device, as shown in fig. 5, including: a receiver 501, a transmitter 502, a processor 503, and a memory 504; the memory 504 includes a storage medium for storing a file;
the processor 503 is configured to scan a storage medium, and obtain time information of a parent file directory; and determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change.
In the embodiment of the invention, the relationship between file directories is limited by adopting a parent file directory and a child file directory, wherein the parent file directory is a higher-level directory of the child file directories, one or more child file directories can be arranged in one parent file directory, the number of the child file directories is variable, and the number of the parent file directories does not influence the implementation of the embodiment of the invention. The "child file directory" may also have its own "child file directory", which is then the "parent file directory" of its own "child file directory". Thus, "parent file directory" and "child file directory" are relative concepts, not absolute concepts, and are not specific to a certain class of file directory, and no other understanding should be made of the above "parent file directory" and "child file directory".
Based on the embodiment of the invention, it can be determined that after the parent file directory is determined not to be changed, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the parent file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", scanning of the second level directory "C: \ Program Files", and the third level directories "C: \ Program Files \" Tencent "and" C \\ \ Program Files \ "SogouInput" can be skipped.
The above embodiment does not describe the processing mode after the parent file directory is changed, and the processing mode after the parent file directory is changed can search for the changed files by adopting a one-by-one scanning mode, which does not affect the skipping of the parent file directory which is not changed, and therefore does not affect the achievement of the above beneficial effects, and therefore, the processing mode after the parent file directory is changed in the embodiment of the present invention can be implemented without unique limitation. However, the embodiment of the present invention still provides a preferred implementation scheme to control the scan skip operation of the sub-file directory, thereby further improving the efficiency of determining the changed file. The specific method comprises the following steps: further, the processor 503 is further configured to, if the parent file directory changes, continue to execute, as the parent file directory, the child file directory of the parent file directory: acquiring time information of a parent file directory; determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change; and determining whether the file is changed according to the time information of the file until determining the changed directory in the lowest directory, acquiring the time information of the file under the changed directory in the lowest directory, and determining whether the file is changed according to the time information of the file.
Generally, it is useful to find a file that has changed, which does not mean that it is useless to determine that the file has not changed, and based on the implementation scheme for determining a file that has changed provided by the embodiment of the present invention, the embodiment of the present invention also provides a scheme for quickly determining a file that has not changed, which is specifically as follows: further, the processor 503 is further configured to determine that the files in all the child file directories in the parent file directory have not changed if the parent file directory has not changed.
By adopting the scheme of the embodiment, as long as one file directory is determined to be unchanged, the file in the file directory can be determined to be unchanged, and it can be understood that the files in the file directory comprise all the files in all the subfiles in the file directory, so that batch determination is realized, and the subfiles and the files are not required to be scanned one by one, so that the efficiency of determining the unchanged files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", it can be determined that all Files within the second level directory "C: \ Program Files", and the third level directories "C: \programfiles \" Tencent "and" C: \ Program Files \ "SogouInput" have not changed.
Optionally, an embodiment of the present invention further provides a specific implementation manner for scanning a storage medium to obtain time information of a parent file directory, where the embodiment of the present invention is performed in a manner of scanning from a first-level directory step by step, and the method includes: the processor 503 is configured to scan a storage medium, and the acquiring time information of the parent file directory includes: and the time information acquisition module is used for scanning the storage medium and acquiring the time information of the first-level directory as the time information of the parent file directory.
In table 1 above, there are three first-level directories, each of the first-level directories has a second-level directory, and the second-level directory has a parent-child relationship with the first-level directory, for example: the subfile directory of 'C: \ Program Files' has 'C: \ Program Files', the second level directory 'C: \ Program Files' is used as the father file directory, and the subfile directory of 'C: \ Program Files' has 'C: \ Program Files \ Tencent' and 'C: \ Program Files \ SogouInput'. The above is only an example, the actual file directory is much more complex than that shown in table 1, and the number of directories at each level is large, and the above example should not be taken as a limitation of the file directory in the embodiment of the present invention.
Optionally, an embodiment of the present invention further provides a time scheme for specifically obtaining time information of a file directory, where an implementation scheme preferably adopted in an embodiment of the present invention is implemented by an Opendir function, Dir is a structure of a file directory data item, and the Opendir function is used to open a directory and establish a directory stream, return a pointer pointing to the Dir structure, and read a directory data item. It should be noted that, as long as the time information of the file directory can be acquired, the implementation of the embodiment of the present invention is not affected, and therefore, the embodiment of the present invention does not uniquely limit the specific acquisition manner, and the time information acquisition manner provided in this embodiment is specifically as follows: the processor 503 is configured to obtain the time information of the parent file directory, and includes: and the structure function for opening the file directory data item is called to acquire the time information of the parent file directory in the structure of the directory data item.
The above scheme is very effective for file changes caused by local device operations, but misjudgment may occur for file changes caused by third-party devices, in order to solve the possible misjudgment, for example: the time information of the file directory in the memory card of the mobile phone with Android (operating system) platform does not necessarily change along with the change of the directory content. The embodiment of the invention provides a further solution, which comprises the following specific steps: further, the processor 503 is further configured to determine whether the parent file directory is modified by the second device before skipping the scanning of all child file directories of the parent file directory; the device where the storage medium is located is a first device, and the other devices except the first device are second devices; if not, skipping the scanning of all the child file directories of the parent file directory, and if so, determining that the parent file directory is changed.
Based on the above file change caused by the third-party device, the embodiment of the present invention provides an application scenario with a wide application range, and it should be noted that many application scenarios of file change caused by the third-party device are provided, for example: personal computer to tablet computer, Personal computer to PDA (Personal Digital Assistant), etc., therefore, the examples in this embodiment should not be construed as the only limitations of the embodiments of the present invention, and the specific examples are as follows: optionally, the storage medium is a mobile phone memory card, the first device is a mobile phone, and the second device is a personal computer.
Another file scanning control device is further provided in the embodiment of the present invention, as shown in fig. 6, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 610 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping) and the like, and can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, which are not described herein again.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment, the storage medium of the memory 620 is a mobile phone memory card, and in the following embodiments, the first device is a mobile phone, and in this embodiment, the processor 680 included in the terminal further has the following functions:
the processor 680 is configured to scan the storage medium and obtain time information of the parent file directory; and determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change.
In the embodiment of the invention, the relationship between file directories is limited by adopting a parent file directory and a child file directory, wherein the parent file directory is a higher-level directory of the child file directories, one or more child file directories can be arranged in one parent file directory, the number of the child file directories is variable, and the number of the parent file directories does not influence the implementation of the embodiment of the invention. The "child file directory" may also have its own "child file directory", which is then the "parent file directory" of its own "child file directory". Thus, "parent file directory" and "child file directory" are relative concepts, not absolute concepts, and are not specific to a certain class of file directory, and no other understanding should be made of the above "parent file directory" and "child file directory".
Based on the embodiment of the invention, it can be determined that after the parent file directory is determined not to be changed, the scanning of the whole file directory and even all the child file directories can be skipped, so that the child file directories and the files in the parent file directory do not need to be scanned one by one, and the efficiency of determining the changed files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", scanning of the second level directory "C: \ Program Files", and the third level directories "C: \ Program Files \" Tencent "and" C \\ \ Program Files \ "SogouInput" can be skipped.
The above embodiment does not describe the processing mode after the parent file directory is changed, and the processing mode after the parent file directory is changed can search for the changed files by adopting a one-by-one scanning mode, which does not affect the skipping of the parent file directory which is not changed, and therefore does not affect the achievement of the above beneficial effects, and therefore, the processing mode after the parent file directory is changed in the embodiment of the present invention can be implemented without unique limitation. However, the embodiment of the present invention still provides a preferred implementation scheme to control the scan skip operation of the sub-file directory, thereby further improving the efficiency of determining the changed file. The specific method comprises the following steps: further, the processor 680 is further configured to, if the parent file directory changes, continue to execute, as the parent file directory, the following steps that: acquiring time information of a parent file directory; determining whether the parent file directory changes according to the time information of the parent file directory, and skipping scanning of all child file directories of the parent file directory if the parent file directory does not change; and determining whether the file is changed according to the time information of the file until determining the changed directory in the lowest directory, acquiring the time information of the file under the changed directory in the lowest directory, and determining whether the file is changed according to the time information of the file.
Generally, it is useful to find a file that has changed, which does not mean that it is useless to determine that the file has not changed, and based on the implementation scheme for determining a file that has changed provided by the embodiment of the present invention, the embodiment of the present invention also provides a scheme for quickly determining a file that has not changed, which is specifically as follows: further, the processor 680 is further configured to determine that the files in all the child file directories in the parent file directory have not changed if the parent file directory has not changed.
By adopting the scheme of the embodiment, as long as one file directory is determined to be unchanged, the file in the file directory can be determined to be unchanged, and it can be understood that the files in the file directory comprise all the files in all the subfiles in the file directory, so that batch determination is realized, and the subfiles and the files are not required to be scanned one by one, so that the efficiency of determining the unchanged files can be improved.
Taking the example of Table 1 as an example, assuming that "C: \" is determined to have not changed by the time information of the first level directory "C: \", it can be determined that all Files within the second level directory "C: \ Program Files", and the third level directories "C: \programfiles \" Tencent "and" C: \ Program Files \ "SogouInput" have not changed.
Optionally, an embodiment of the present invention further provides a specific implementation manner for scanning a storage medium to obtain time information of a parent file directory, where the embodiment of the present invention is performed in a manner of scanning from a first-level directory step by step, and the method includes: the processor 680 is configured to scan the storage medium, and the obtaining the time information of the parent file directory includes: and the time information acquisition module is used for scanning the storage medium and acquiring the time information of the first-level directory as the time information of the parent file directory.
In table 1 above, there are three first-level directories, each of the first-level directories has a second-level directory, and the second-level directory has a parent-child relationship with the first-level directory, for example: the subfile directory of 'C: \ Program Files' has 'C: \ Program Files', the second level directory 'C: \ Program Files' is used as the father file directory, and the subfile directory of 'C: \ Program Files' has 'C: \ Program Files \ Tencent' and 'C: \ Program Files \ SogouInput'. The above is only an example, the actual file directory is much more complex than that shown in table 1, and the number of directories at each level is large, and the above example should not be taken as a limitation of the file directory in the embodiment of the present invention.
Optionally, an embodiment of the present invention further provides a time scheme for specifically obtaining time information of a file directory, where an implementation scheme preferably adopted in an embodiment of the present invention is implemented by an Opendir function, Dir is a structure of a file directory data item, and the Opendir function is used to open a directory and establish a directory stream, return a pointer pointing to the Dir structure, and read a directory data item. It should be noted that, as long as the time information of the file directory can be acquired, the implementation of the embodiment of the present invention is not affected, and therefore, the embodiment of the present invention does not uniquely limit the specific acquisition manner, and the time information acquisition manner provided in this embodiment is specifically as follows: the processor 680, configured to obtain the time information of the parent file directory, includes: and the structure function for opening the file directory data item is called to acquire the time information of the parent file directory in the structure of the directory data item.
The above scheme is very effective for file changes caused by local device operations, but misjudgment may occur for file changes caused by third-party devices, in order to solve the possible misjudgment, for example: the time information of the file directory in the memory card of the mobile phone with Android (operating system) platform does not necessarily change along with the change of the directory content. The embodiment of the invention provides a further solution, which comprises the following specific steps: further, the processor 680 is further configured to determine whether the parent file directory is modified by the second device before skipping the scanning of all child file directories of the parent file directory; the device where the storage medium is located is a first device, and the other devices except the first device are second devices; if not, skipping the scanning of all the child file directories of the parent file directory, and if so, determining that the parent file directory is changed.
Optionally, an embodiment of the present invention further provides a scheme for determining whether the second device changes the local file, which is specifically as follows: the processor 680 is configured to determine whether the parent file directory is modified by the second device according to the locally stored inode; the index node is used for recording whether the parent file directory is changed by the second device.
Based on the above file change caused by the third-party device, the embodiment of the present invention provides an application scenario with a wide application range, and it should be noted that many application scenarios of file change caused by the third-party device are provided, for example: personal computer to tablet computer, Personal computer to PDA (Personal Digital Assistant), etc., therefore, the examples in this embodiment should not be construed as the only limitations of the embodiments of the present invention, and the specific examples are as follows: optionally, the second device is a personal computer.
It should be noted that, in the above device embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be achieved; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, it is understood by those skilled in the art that all or part of the steps in the above method embodiments may be implemented by related hardware, and the corresponding program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the embodiment of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. A method for controlling document scanning, comprising:
traversing a first-level directory of the memory card, calling a structure function Opendir for opening a file directory data item, and reading a structure Dir directory stream of all file directory data items of the memory card;
determining time data in the Dir according to the read Dir directory stream, and acquiring time information of a first-level directory as time information of a parent file directory according to the time data in the Dir;
determining whether the parent file directory changes according to the time information of the parent file directory;
if the time information of the parent file directory changes, taking the child file directory of the parent file directory as the parent file directory, and returning to execute the step of determining the time data in the Dir according to the read Dir directory stream;
if the time information of the father file directory does not change, the created file is added into the memory card, an index node of the created file is recorded, and whether the father file directory is changed by the second device or not is determined by judging whether the index node changes or not;
if the index node is not changed, determining that the parent file directory is not changed by the second device, and skipping scanning of all child file directories and files of the parent file directory;
if the index node changes, determining that the parent file directory is changed by the second device, and if the parent file directory changes, taking a child file directory of the parent file directory as the parent file directory, and returning to execute the step of determining the time data in the Dir according to the read Dir directory stream; the index node is used for recording whether the parent file directory is changed by a second device; the device where the memory card is located is a first device, and the other devices except the first device are second devices.
2. The method of claim 1, further comprising:
if the time information of the parent file directory is not changed, skipping scanning of all child file directories and files of the parent file directory; and determining whether the file is changed according to the time information of the file until determining the changed directory in the lowest directory, acquiring the time information of the file under the changed directory in the lowest directory, and determining whether the file is changed according to the time information of the file.
3. The method of claim 1, further comprising, if the parent file directory has not changed:
it is determined that the files under all child file directories within the parent file directory have not changed.
4. The method of claim 1, wherein the memory card is a mobile phone memory card, the first device is a mobile phone, and the second device is a personal computer.
5. A control apparatus for document scanning, comprising:
the information acquisition unit is used for traversing a first-level directory of the memory card, calling a structure function Opendir for opening file directory data items, and reading a structure Dir directory stream of all file directory data items of the memory card; determining time data in the Dir according to the read Dir directory stream, and acquiring time information of a first-level directory as time information of a parent file directory according to the time data in the Dir;
a change determining unit for determining whether the parent file directory is changed according to the time information of the parent file directory; if the time information of the parent file directory changes, taking the child file directory of the parent file directory as the parent file directory, and returning to execute the step of determining the time data in the Dir according to the read Dir directory stream;
an external determination unit, configured to create a file and add the file to the memory card if the time information of the parent file directory is not changed and the parent file directory is not changed, record an index node of the created file, and determine whether the parent file directory is changed by the second device by determining whether the index node is changed; if the index node is not changed, determining that the parent file directory is not changed by the second device, and skipping scanning of all child file directories and files of the parent file directory; if the index node changes, determining that the parent file directory is changed by the second device, and if the parent file directory changes, taking a child file directory of the parent file directory as the parent file directory, and returning to execute the step of determining the time data in the Dir according to the read Dir directory stream; the index node is used for recording whether the parent file directory is changed by a second device; the device where the memory card is located is a first device, and the other devices except the first device are second devices.
6. The apparatus of claim 5,
the control device for file scanning is further used for: if the time information of the parent file directory is not changed, skipping scanning of all child file directories and files of the parent file directory; and determining whether the file is changed according to the time information of the file until determining the changed directory in the lowest directory, acquiring the time information of the file under the changed directory in the lowest directory, and determining whether the file is changed according to the time information of the file.
7. The apparatus of claim 5,
the change determining unit is further configured to determine that the files in all the child file directories in the parent file directory have not changed if the change determining unit determines that the parent file directory has not changed.
8. The apparatus of claim 5, wherein the memory card is a mobile phone memory card, the first device is a mobile phone, and the second device is a personal computer.
9. A storage medium, wherein an application program is stored in the storage medium, and when the application program is loaded and executed by a processor, the application program implements the method for controlling file scanning according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410004321.9A CN104765740B (en) | 2014-01-03 | 2014-01-03 | File scanning control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410004321.9A CN104765740B (en) | 2014-01-03 | 2014-01-03 | File scanning control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104765740A CN104765740A (en) | 2015-07-08 |
CN104765740B true CN104765740B (en) | 2021-10-08 |
Family
ID=53647575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410004321.9A Active CN104765740B (en) | 2014-01-03 | 2014-01-03 | File scanning control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104765740B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704176B (en) * | 2021-07-09 | 2023-10-31 | 奇安信科技集团股份有限公司 | File scanning method, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064957A (en) * | 2012-12-28 | 2013-04-24 | 华为技术有限公司 | Method and client for achieving ACL (Access Control List) |
CN103226593A (en) * | 2013-04-17 | 2013-07-31 | 富泰华工业(深圳)有限公司 | File system management method and file storage terminal thereof |
CN103336925A (en) * | 2013-07-29 | 2013-10-02 | 腾讯科技(深圳)有限公司 | Scanning acceleration method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5250644B2 (en) * | 2011-01-25 | 2013-07-31 | 株式会社ソニー・コンピュータエンタテインメント | Information processing device |
-
2014
- 2014-01-03 CN CN201410004321.9A patent/CN104765740B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064957A (en) * | 2012-12-28 | 2013-04-24 | 华为技术有限公司 | Method and client for achieving ACL (Access Control List) |
CN103226593A (en) * | 2013-04-17 | 2013-07-31 | 富泰华工业(深圳)有限公司 | File system management method and file storage terminal thereof |
CN103336925A (en) * | 2013-07-29 | 2013-10-02 | 腾讯科技(深圳)有限公司 | Scanning acceleration method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104765740A (en) | 2015-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562835B (en) | File searching method and device, mobile terminal and computer readable storage medium | |
CN104866505B (en) | Application recommendation method and device | |
CN107948748B (en) | Method, device, mobile terminal and computer storage medium for recommending videos | |
CN108319657B (en) | Method for detecting strong rhythm point, storage medium and terminal | |
CN107329985B (en) | Page collection method and device and mobile terminal | |
AU2018273505B2 (en) | Method for capturing fingerprint and associated products | |
CN108156508B (en) | Barrage information processing method and device, mobile terminal, server and system | |
CN104699973A (en) | Method and device for controlling logic of questionnaires | |
CN103336925A (en) | Scanning acceleration method and device | |
CN103327189A (en) | Method and device for uploading, browsing and deleting pictures | |
CN104426963A (en) | Terminal associating method and terminal | |
CN106951492B (en) | File searching method and device and electronic equipment | |
CN104516888A (en) | Authority query method and device of multi-dimensional data | |
CN103246847B (en) | A kind of method and apparatus of macrovirus killing | |
CN110688347A (en) | File storage method, file storage device and terminal equipment | |
CN104836717A (en) | Data processing method and apparatus, and terminal equipment | |
CN104281610A (en) | Method and device for filtering microblogs | |
CN105550316A (en) | Pushing method and device of audio list | |
CN104424203A (en) | Method and system for viewing photo sharing state in mobile device | |
CN104142994A (en) | Data list acquisition method, terminal and system | |
CN104426926A (en) | Processing method and apparatus for regularly issued data | |
CN107231461B (en) | Fingerprint acquisition method and related product | |
CN110602766B (en) | Personal hotspot identification method and method for determining association relationship between terminals | |
CN110532231B (en) | File query method, file query device and terminal equipment | |
CN108513005B (en) | Contact person information processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |