摘要 |
PROBLEM TO BE SOLVED: To provide a method and apparatus for scanning files.SOLUTION: A method for scanning files comprises: during the traversing of a directory, performing first processing on the traversed directory. The first processing comprises acquiring a directory attribute of the traversed directory, determining whether the traversed directory is a remapped directory according to the acquired directory attribute, and if it is a remapped directory, performing no scanning processing on the traversed directory, and if it is not a remapped directory, performing scanning processing on the traversed directory. The IO overhead and CPU overhead during scanning can be effectively reduced by means of the present invention, thus improving the file scanning efficiency.SELECTED DRAWING: Figure 1 |