发明名称 METHOD AND APPARATUS FOR SCANNING FILES
摘要 A method and apparatus for scanning files, wherein the method comprises: during the traversing of a directory, performing first processing on the traversed directory, the first processing comprising: acquiring a directory attribute of the traversed directory, and determining whether the traversed directory is a remapped directory according to the acquired directory attribute, and if so, performing no scanning processing on the traversed directory, and if not, performing scanning processing on the traversed directory, with the scanning processing comprising: scanning various files in the traversed directory to acquire a scanning result, and/or, performing second processing on various sub-directories in the traversed directory; and the second processing comprises: traversing the various sub-directories, and performing the same processing as the first processing on the traversed sub-directories. The IO overhead and CPU overhead during scanning can be effectively reduced by means of the present invention, thus improving the file scanning efficiency.
申请公布号 US2016055168(A1) 申请公布日期 2016.02.25
申请号 US201414587891 申请日期 2014.12.31
申请人 Baidu Online Network Technology (Beijing) Co., Ltd 发明人 GUO Mingqiang;ZHANG Yongcheng
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址 Beijing CN