CN102289451A - Method and device for searching files or folders - Google Patents
Method and device for searching files or folders Download PDFInfo
- Publication number
- CN102289451A CN102289451A CN2011101639540A CN201110163954A CN102289451A CN 102289451 A CN102289451 A CN 102289451A CN 2011101639540 A CN2011101639540 A CN 2011101639540A CN 201110163954 A CN201110163954 A CN 201110163954A CN 102289451 A CN102289451 A CN 102289451A
- Authority
- CN
- China
- Prior art keywords
- file
- folder
- record
- attributes
- files
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000005192 partition Methods 0.000 claims abstract description 56
- 230000004044 response Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
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 provides a method for searching files or folders, comprising the steps of: reading the content of the master boot record area, and obtaining the partition format of the hard disk; obtaining the recording addresses of all files or folder attributes in the hard disk according to the partition format of the hard disk, and according to The record address of the attributes of the files or folders reads all the attributes of the files or folders into the memory; it traverses through all the attributes of the files or folders read into the memory to find all or part of the files or folders. The present invention also provides a file or folder search device for realizing the aforementioned method. The file or folder search method and device of the present invention can realize fast file or folder search and reduce the occupation of computer resources.
Description
技术领域 technical field
本发明涉及计算机存储数据查找技术领域,特别是涉及一种文件或文件夹查找方法和装置。The invention relates to the technical field of computer storage data search, in particular to a file or folder search method and device.
背景技术 Background technique
硬盘是现在计算机上最常用的存储设备,计算机中文件或文件夹都以文件记录的形式存储在硬盘里。一个硬盘可以区分为多个分区。分区从实质上说就是对硬盘的一种格式化。当我们创建分区时,就已经设置好了硬盘的各项物理参数,指定了硬盘主引导记录(即Master BootRecord,一般简称为主引导记录区)和引导记录备份的存放位置。The hard disk is the most commonly used storage device on the computer nowadays. The files or folders in the computer are stored in the hard disk in the form of file records. A hard disk can be divided into multiple partitions. Partitioning is essentially a formatting of the hard disk. When we create a partition, we have already set the physical parameters of the hard disk, and specified the storage location of the hard disk master boot record (that is, Master Boot Record, generally referred to as the master boot record area) and boot record backup.
通常Windows下从硬盘中查找一个指定的或者全部的文件或文件夹是调用FindFirstFile和FindNextFile这两个API(Application ProgrammingInterface,应用程序编程接口)来实现的。实际运用中,因为硬盘中的文件或文件夹数量较大,例如,十万或者更多,调用这两个API会发生数以万次的I/O(Input/Output,输入/输出)操作,因此查找速度上会较慢。Usually, searching for a specified or all files or folders from the hard disk under Windows is realized by calling the two APIs (Application Programming Interface, Application Programming Interface) of FindFirstFile and FindNextFile. In actual use, because the number of files or folders in the hard disk is large, for example, one hundred thousand or more, tens of thousands of I/O (Input/Output, input/output) operations will occur when calling these two APIs. Therefore, the search speed will be slower.
在Windows XP以下加入了索引技术,对于重复操作的操作能实现快速的查找,但是在第一次搜索时也还是比较慢的。另外,因为频繁的使用I/O操作,还可能造成对计算机资源的占用,从而使计算机的响应变得缓慢。The index technology is added below Windows XP, which can realize fast search for repeated operations, but it is still relatively slow at the first search. In addition, due to the frequent use of I/O operations, it may also cause occupation of computer resources, thereby slowing down the response of the computer.
发明内容 Contents of the invention
本发明所要解决的技术问题是提供一种文件或文件夹查找方法和装置,能够实现快速的文件或文件夹的查找和减少对计算机资源的占用。The technical problem to be solved by the present invention is to provide a file or folder search method and device, which can realize fast file or folder search and reduce the occupation of computer resources.
为了解决上述问题,本发明公开了一种文件或文件夹查找方法,包括以下步骤:In order to solve the above problems, the present invention discloses a file or folder search method, comprising the following steps:
读取主引导记录区的内容,获取硬盘分区格式;Read the content of the master boot record area to obtain the hard disk partition format;
根据硬盘分区格式获取硬盘中所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址将所有文件或文件夹属性读入内存;Obtain the record address of all file or folder attributes in the hard disk according to the hard disk partition format, and read all file or folder attributes into memory according to the record address of the file or folder attribute;
在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹。Traverse to find all or some files or folders in all file or folder attributes read into memory.
进一步地,所述根据硬盘分区格式获取所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址将所有文件或文件夹属性读入内存包括:Further, said obtaining the record addresses of all files or folder attributes according to the hard disk partition format, and reading all file or folder attributes into the memory according to the record addresses of the file or folder attributes includes:
若硬盘分区格式为FAT12,FAT16或FAT32,从文件分配表获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将文件分配表中的所有文件或文件夹属性读入内存;和/或If the hard disk partition format is FAT12, FAT16 or FAT32, obtain the record addresses of all file or folder attributes from the file allocation table, and read all the file or folder attributes in the file allocation table into the memory; and/or
若硬盘分区格式为NTFS,从主文件表中获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将主文件表中的所有文件或文件夹属性读入内存。If the partition format of the hard disk is NTFS, obtain the record addresses of all file or folder attributes from the master file table, and read all the file or folder attributes in the master file table into the memory according to the record addresses of the file or folder attributes.
进一步地,所述从文件分配表获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将文件分配表中的所有文件或文件夹属性读入内存包括:Further, said obtaining the record addresses of all files or folder attributes from the file allocation table, and reading all the file or folder attributes in the file allocation table into the memory according to the record addresses of the file or folder attributes includes:
读取BIOS参数块的内容,获取文件分配表的起始地址和大小;Read the content of the BIOS parameter block to obtain the starting address and size of the file allocation table;
确定文件分配表中所有文件或文件夹属性所在记录项的记录起止地址;Determine the record start and end addresses of the record items where the attributes of all files or folders are located in the file allocation table;
根据确定的所有文件或文件夹属性所在记录项的记录起止地址将文件分配表中所有文件或文件夹属性读入内存。Read all the file or folder attributes in the file allocation table into the memory according to the determined record start and end addresses of the record items where the attributes of all the files or folders are located.
进一步地,所述从主文件表中获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将主文件表中的所有文件或文件夹属性读入内存包括:Further, said obtaining the record addresses of all file or folder attributes from the master file table, and reading all the file or folder attributes in the master file table into the memory according to the record addresses of the file or folder attributes includes:
读取BIOS参数块的内容,获取主文件表的起始地址和大小;Read the content of the BIOS parameter block to obtain the starting address and size of the main file table;
确定主文件表中所有文件或文件夹属性所在记录项的记录起止地址;Determine the record start and end addresses of the record items where all file or folder attributes are located in the master file table;
根据确定的所有文件或文件夹属性所在记录项的记录起止地址将主文件表中所有文件或文件夹属性读入内存。Read all the file or folder attributes in the master file table into the memory according to the determined record start and end addresses of the record items where the attributes of all the files or folders are located.
进一步地,所述从主文件表中获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将主文件表中的所有文件或文件夹属性读入内存包括:Further, said obtaining the record addresses of all file or folder attributes from the master file table, and reading all the file or folder attributes in the master file table into the memory according to the record addresses of the file or folder attributes includes:
通过CreateFile打开元文件$MFT来获取整个主文件表的所有文件或文件夹属性所在记录项的记录地址,并根据所述文件或文件夹属性所在记录项的记录地址获取所述文件或文件夹属性。Open the metafile $MFT through CreateFile to obtain the record addresses of all file or folder attributes in the entire master file table, and obtain the file or folder attributes according to the record addresses of the record items where the file or folder attributes are located .
进一步地,所述在内存中所有文件或文件夹属性中遍历查找包括:Further, the traversal search in the attributes of all files or folders in the memory includes:
遍历每一个文件或文件夹属性,获取文件或文件夹的属性信息,以对文件或文件夹进行管理。Traverse each file or folder attribute, obtain the attribute information of the file or folder, so as to manage the file or folder.
进一步地,所述在内存中所有文件或文件夹属性中遍历查找,包括:Further, the traversal search in the attributes of all files or folders in the memory includes:
确定文件分配表或主文件表的起始地址;Determine the starting address of the file allocation table or master file table;
从起始地址开始,依次偏移文件或文件夹属性所在记录项所占用的字节数,直至遍历完成。Starting from the starting address, offset the number of bytes occupied by the record item where the attribute of the file or folder is located until the traversal is completed.
进一步地,所述在内存中所有数据属性中遍历查找包括:Further, the traversal search in all data attributes in the memory includes:
确定主文件表中文件或文件夹属性在其所在记录项中的存储位置,在所述存储位置进行查找。Determine the storage location of the file or folder attribute in the record item in the master file table, and search in the storage location.
进一步地,所述在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹包括:Further, the traversing to find all or part of the files or folders in the attributes of all files or folders read into the memory includes:
根据在查找时加入的文件或文件夹特征作为查找条件,在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹;According to the characteristics of the files or folders added during the search as the search condition, traverse and search for all or part of the files or folders in the attributes of all files or folders read into the memory;
并将查找到的文件或文件夹展示。It will display the found files or folders.
进一步地,所述查找条件包括以下一种或多种:文件名、文件夹名、创建日期、最后访问日期和大小。Further, the search conditions include one or more of the following: file name, folder name, creation date, last access date and size.
进一步地,所述指定文件或文件夹的查找包括以下一种或几种:Further, the search for the specified file or folder includes one or more of the following:
重复文件或文件夹查找、0字节文件或文件夹查找、指定文件或文件夹查找,以及垃圾文件查找。Duplicate file or folder search, 0-byte file or folder search, specified file or folder search, and junk file search.
进一步地,所述方法还包括删除所述查找到的文件或文件夹。Further, the method further includes deleting the found file or folder.
进一步地,所述方法还包括:Further, the method also includes:
若出现新的硬盘分区格式,从服务器中获取文件或文件夹属性的记录地址。If a new hard disk partition format appears, obtain the record address of the file or folder attribute from the server.
进一步地,所述硬盘中所有文件或文件夹属性包括以下一种或多种:Further, the attributes of all files or folders in the hard disk include one or more of the following:
名称、大小、创建时间、创建日期、最后访问日期、最后修改日期。Name, Size, Created, Created, Last Accessed, Last Modified.
进一步地,所述方法还包括:Further, the method also includes:
根据硬盘分区格式获取硬盘中所有文件或文件夹的存放位置。Obtain the storage location of all files or folders in the hard disk according to the partition format of the hard disk.
进一步地,所述将所有文件或文件夹属性读入内存包括:Further, said reading all file or folder attributes into memory includes:
将所有文件或文件夹属性一次读入内存;或read all file or folder attributes into memory at once; or
将所有文件或文件夹属性分段读入内存。Read all file or folder attributes into memory in pieces.
为了解决上述问题,本发明还公开了一种文件或文件夹查找装置,包括:In order to solve the above problems, the present invention also discloses a file or folder search device, comprising:
主引导记录区内容读取模块,用于读取主引导记录区的内容,获取硬盘分区格式;The master boot record area content reading module is used to read the content of the master boot record area and obtain the hard disk partition format;
记录获取模块,用于根据硬盘分区格式获取硬盘中所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址将所有文件或文件夹属性读入内存;The record acquisition module is used to obtain the record addresses of all files or folder attributes in the hard disk according to the hard disk partition format, and read all file or folder attributes into the memory according to the record addresses of the file or folder attributes;
查找模块,用于在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹。The search module is used to traverse and find all or part of files or folders in the properties of all files or folders read into memory.
进一步地,所述记录获取模块包括:Further, the record acquisition module includes:
文件分配表记录获取模块,用于当硬盘分区格式为FAT12,FAT16或FAT32时,从文件分配表获取所有文件或文件夹属性的记录地址,并根据文件或文件夹属性的记录地址将文件分配表中的所有文件或文件夹属性读入内存;和/或The file allocation table record acquisition module is used to obtain the record address of all file or folder attributes from the file allocation table when the hard disk partition format is FAT12, FAT16 or FAT32, and to file the file allocation table according to the record address of the file or folder attribute. All file or folder attributes in the are read into memory; and/or
主文件表记录获取模块,用于当硬盘分区格式为NTFS时,从主文件表中获取所有文件或文件夹属性的记录地址和属性,并根据文件或文件夹属性的记录地址将主文件表中的所有文件或文件夹属性读入内存。The master file table record acquisition module is used to obtain the record addresses and attributes of all file or folder attributes from the master file table when the hard disk partition format is NTFS, and transfer them to the master file table according to the record addresses of the file or folder attributes. All file or folder attributes are read into memory.
进一步地,所述文件分配表记录获取模块包括:Further, the file allocation table record acquisition module includes:
文件分配表起始地址和大小获取单元,用于读取BIOS参数块的内容,获取文件分配表的起始地址和大小;The file allocation table start address and size acquisition unit are used to read the content of the BIOS parameter block and obtain the start address and size of the file allocation table;
记录地址确定单元,用于确定文件分配表中所有文件或文件夹属性所在记录项的记录起止地址;A record address determining unit, configured to determine the record start and end addresses of record items where all file or folder attributes are located in the file allocation table;
记录内容读取单元,用于根据确定的所有文件或文件夹属性所在记录项的记录起止地址将文件分配表中所有文件或文件夹属性读入内存。The record content reading unit is used for reading all the file or folder attributes in the file allocation table into the memory according to the determined record start and end addresses of the record items where the attributes of all files or folders are located.
进一步地,所述主文件表记录获取模块包括:Further, the master file table record acquisition module includes:
主文件表起始地址和大小获取单元,用于读取BIOS参数块的内容,获取主文件表的起始地址和大小;The starting address and size acquisition unit of the main file table is used to read the content of the BIOS parameter block and obtain the starting address and the size of the main file table;
记录地址确定单元,用于确定主文件表所有文件或文件夹属性所在记录项的记录起止地址;A record address determination unit, configured to determine the record start and end addresses of the record items where the attributes of all files or folders in the master file table are located;
记录内容读取单元,用于根据确定的所有文件或文件夹属性所在记录项的记录起止地址将主文件表中所有文件或文件夹属性读入内存。The record content reading unit is used for reading all file or folder attributes in the main file table into the memory according to the determined record start and end addresses of the record items where the attributes of all files or folders are located.
进一步地,所述主文件表记录获取模块包括:Further, the master file table record acquisition module includes:
元文件打开单元,用于通过CreateFile打开元文件$MFT来获取整个主文件表的所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址获取所述文件或文件夹属性。The metafile opening unit is used to open the metafile $MFT through CreateFile to obtain the record address of all file or folder attributes in the entire master file table, and obtain the file or folder according to the record address of the file or folder attribute Attributes.
进一步地,所述查找模块包括:Further, the search module includes:
文件或文件夹属性遍历单元,用于遍历每一个文件或文件夹属性,获取文件或文件夹属性信息,以对文件或文件夹进行管理。The file or folder attribute traversal unit is configured to traverse each file or folder attribute to obtain file or folder attribute information, so as to manage the file or folder.
进一步地,所述查找模块包括:Further, the search module includes:
属性信息区域确定单元,用于确定主文件表中文件或文件夹属性在其所在记录项中的存储位置,对所述存储位置进行查找。The attribute information area determination unit is used to determine the storage location of the file or folder attribute in the record item where it is located in the master file table, and search the storage location.
进一步地,所述装置还包括:Further, the device also includes:
查找条件添加模块,用于根据在查找时加入的文件或文件夹特征作为查找条件,在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹;和The search condition adding module is used to traverse and search all or part of the files or folders in all the file or folder attributes read into the memory according to the file or folder characteristics added during the search as the search condition; and
展示模块,用于展示查找到的文件或文件夹。The display module is used to display the found files or folders.
进一步地,所述装置还包括:Further, the device also includes:
处理模块,用于删除查找到的文件或文件夹。The processing module is used to delete the found files or folders.
进一步地,所述装置还包括:Further, the device also includes:
文件或文件夹属性记录地址获取模块,用于在出现新的硬盘分区格式,从服务器中获取文件或文件夹属性的记录地址。The file or folder attribute record address obtaining module is used to obtain the file or folder attribute record address from the server when a new hard disk partition format appears.
进一步地,所述记录获取模块包括:Further, the record acquisition module includes:
一次读取单元,用于将所有文件或文件夹属性一次读入内存;或read-at-once unit for reading all file or folder attributes into memory at once; or
分段读取单元,用于将所有文件或文件夹属性分段读入内存。The segment read unit is used to read all file or folder attributes into memory in segments.
与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:
本发明的文件或文件夹查找方法和装置通过读取硬盘的主引导记录区中所记载的文件或文件夹属性的记录起始地址,并根据硬盘分区类型来确定每个文件或文件夹属性记录所在记录项的偏移量,从而获取每个文件或文件夹属性的记录起止地址,并可以根据文件或文件夹属性的记录起止地址将所有文件或文件夹属性从硬盘一次或分段读入到内存中,然后在内存中遍历所有的文件或文件夹属性来对文件或文件夹进行查找。此种方式通过一次或几次I/O操作来实现文件或文件夹查找,可以避免因为频繁进行I/O操作而造成的查找速度较慢的情况,提高查找速度以及客户端的响应速度,避免对客户端资源进行不必要的占用。The file or folder search method and device of the present invention determine each file or folder attribute record according to the hard disk partition type by reading the recording start address of the file or folder attribute recorded in the master boot record area of the hard disk The offset of the record item, so as to obtain the record start and end addresses of each file or folder attribute, and read all file or folder attributes from the hard disk into the In memory, and then traverse all file or folder attributes in memory to search for files or folders. This method realizes the file or folder search through one or several I/O operations, which can avoid the slow search speed caused by frequent I/O operations, improve the search speed and the response speed of the client, and avoid Unnecessary hogging of client resources.
附图说明 Description of drawings
图1是本发明的文件或文件夹查找方法实施例一的流程图;Fig. 1 is the flow chart of Embodiment 1 of the file or folder search method of the present invention;
图2是图1所示的根据硬盘分区格式获取所有文件或文件夹记录方法实施例的流程图;Fig. 2 is the flow chart of obtaining all files or folder recording method embodiments according to the hard disk partition format shown in Fig. 1;
图3是本发明的文件或文件夹查找装置实施例一的结构示意图。FIG. 3 is a schematic structural diagram of Embodiment 1 of the file or folder search device of the present invention.
具体实施方式 Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明的文件或文件夹查找方法及装置应用于计算机客户端,用于对客户端的硬盘中存储的文件或文件夹进行查找。具体的,本申请的文件或文件夹查找方法及装置可以通过计算机程序实现,并安装于客户端中,通过处理器的运行来执行。The file or folder search method and device of the present invention are applied to a computer client to search files or folders stored in the hard disk of the client. Specifically, the file or folder search method and device of the present application can be implemented by a computer program, installed in a client, and executed by running a processor.
参照图1,示出本发明的文件或文件夹查找方法的实施例一,包括以下步骤:Referring to Fig. 1, it shows the first embodiment of the file or folder search method of the present invention, comprising the following steps:
步骤101,读取主引导记录区的内容,获取硬盘分区格式。
操作系统可以调用API CreateFile来打开相应的硬盘设备或分区。从而得到硬盘或分区的句柄,进而读取到主引导记录区(MBR,Master BootRecord)的内容。The operating system can call the API CreateFile to open the corresponding hard disk device or partition. Thereby, the handle of the hard disk or partition is obtained, and then the content of the master boot record area (MBR, Master BootRecord) is read.
读取主引导记录区的内容判断硬盘分区格式,在主引导记录区中记载有硬盘分区格式的标识,通过读取主引导记录区的内容便可以确定硬盘分区格式。目前Windows的分区格式包括有FAT12,FAT1 6,FAT32和NTFS(New Technology File System)。其中对于前3种,硬盘上的所有文件、文件夹信息都记录于文件分配表(FAT,File Allocation Table)里。对于NTFS分区,所有文件、文件夹信息存储在主文件表(MFT,Master File Table)里。Read the content of the master boot record area to determine the partition format of the hard disk. The logo of the hard disk partition format is recorded in the master boot record area, and the hard disk partition format can be determined by reading the content of the master boot record area. The current Windows partition formats include FAT12, FAT16, FAT32 and NTFS (New Technology File System). Among them, for the first three types, all files and folder information on the hard disk are recorded in the file allocation table (FAT, File Allocation Table). For NTFS partitions, all files and folder information are stored in the master file table (MFT, Master File Table).
步骤102,根据硬盘分区格式获取硬盘中所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址将所有文件或文件夹属性读入内存。Step 102: Obtain the record address of all file or folder attributes in the hard disk according to the partition format of the hard disk, and read all file or folder attributes into memory according to the record address of the file or folder attribute.
其中,文件或文件夹属性是指名称、大小、创建时间、创建日期、最后访问日期、最后修改日期等等能对文件或文件夹进行识别的特征。Wherein, the file or folder attribute refers to the characteristics such as name, size, creation time, creation date, last access date, last modification date, etc. that can identify the file or folder.
所有文件或文件夹属性记录在文件分配表或主文件表中,其中,其记录的载体与硬盘分区格式对应。分区格式为FAT12,FAT1 6或FAT32对应的所有文件或文件夹属性记录在文件分配表中,分区格式为NTFS对应的文件或文件夹属性记录在主文件表中。The attributes of all files or folders are recorded in the file allocation table or master file table, wherein the recorded carrier corresponds to the hard disk partition format. The attributes of all files or folders corresponding to the partition format of FAT12, FAT16 or FAT32 are recorded in the file allocation table, and the attributes of files or folders corresponding to the partition format of NTFS are recorded in the master file table.
如果硬盘的分区格式为FAT12,FAT16或FAT32的其中一种,那么读取文件分配表的内容。如果硬盘的分区格式为NTFS,那么则读取主文件表的内容。If the partition format of the hard disk is one of FAT12, FAT16 or FAT32, then read the contents of the file allocation table. If the partition format of the hard disk is NTFS, then read the contents of the master file table.
将所有文件或文件夹属性读入内存可以是一次读入内存,也可以是分段读入内存,即分几次读入,具体的可以根据内存的容量和占用情况来确定。例如,当内存足够大的时候,可以选择将所有文件或文件夹属性一次读入内存,当内存不足时,则可以分几次将所有文件或文件夹属性读入内存,从而避免频繁的输入/输出操作以及占用过多的系统资源。Reading all file or folder attributes into the memory can be read into the memory at one time, or read into the memory in segments, that is, read in several times, and the specifics can be determined according to the capacity and occupancy of the memory. For example, when the memory is large enough, you can choose to read all the file or folder attributes into the memory at one time, and when the memory is insufficient, you can read all the file or folder attributes into the memory several times, thus avoiding frequent input/ Output operations and use too many system resources.
参照图2,其中,读取文件分配表的内容的具体过程为:With reference to Fig. 2, wherein, the specific process of reading the contents of the file allocation table is:
D1,读取BPB(BIOS参数块,BIOS Parameter Block)的内容,获取文件分配表的起始地址和大小。D1, read the content of BPB (BIOS Parameter Block, BIOS Parameter Block) to obtain the starting address and size of the file allocation table.
其中,BPB记录在主引导记录区中,BPB会按照固定的格式来记录文件分配表的起始地址,从主引导记录区可以读取到BPB的内容,通过对BPB内容的分析可以找到BPB对应的记录字节,便可以获取文件分配表的起始地址。Among them, the BPB is recorded in the master boot record area, and the BPB will record the starting address of the file allocation table in a fixed format, and the content of the BPB can be read from the master boot record area, and the BPB correspondence can be found by analyzing the BPB content. The record bytes of the file allocation table can be obtained.
另外,BPB中定义了每扇区字节数、每个簇有几个扇区以及总扇区数。通过这些文件或文件夹可以计算出每簇的大小=每扇区字节数*每个簇的扇区数。BPB中记载了文件分配表所占用的起始簇号及簇的占用数量,从而可以获取文件分配表的大小。In addition, the BPB defines the number of bytes per sector, how many sectors each cluster has, and the total number of sectors. Through these files or folders, you can calculate the size of each cluster = the number of bytes per sector * the number of sectors in each cluster. The BPB records the starting cluster number occupied by the file allocation table and the number of clusters occupied, so that the size of the file allocation table can be obtained.
D2,确定文件分配表中所有文件或文件夹属性所在记录项的记录起止地址。D2. Determine the record start and end addresses of the record items where the attributes of all files or folders are located in the file allocation table.
一般来说,文件分配表中每一个记录项之间的偏移量是一定的,文件或文件夹属性在每一个记录项中的存储位置也是一定的,在确定文件分配表的起始地址后,可以通过偏移量来获取到每个文件或文件夹属性所在记录项的起止地址,从而确定每个文件或文件夹属性的记录地址。例如,文件分配表中的一个记录项的偏移量为1024个字节,文件或文件夹属性占用前512个字节,那么在确定文件分配表中每个记录项的起止地址后,便可以确定文件或文件夹属性的记录地址。Generally speaking, the offset between each record item in the file allocation table is certain, and the storage location of the file or folder attribute in each record item is also certain. After determining the starting address of the file allocation table , the start and end address of the record item where each file or folder attribute is located can be obtained through the offset, so as to determine the record address of each file or folder attribute. For example, the offset of a record item in the file allocation table is 1024 bytes, and the file or folder attribute occupies the first 512 bytes. After determining the start and end addresses of each record item in the file allocation table, you can Determines the address of record for file or folder attributes.
通过文件分配表的起始地址、偏移量和大小可以确定文件分配表的终止地址,具体的,通过起始地址和大小,可以计算出文件分配表的终止地址,在通过偏移量来获取起始地址和终止地址之间的所有文件或文件夹属性所在记录项的记录起止地址,从而可以保证文件分配表的所有文件或文件夹属性所在记录项的记录起止地址都能被确定。The end address of the file allocation table can be determined through the start address, offset and size of the file allocation table. Specifically, the end address of the file allocation table can be calculated through the start address and size, and obtained through the offset The record start and end addresses of all file or folder attribute record items between the start address and the end address, so as to ensure that the record start and end addresses of all file or folder attribute record items in the file allocation table can be determined.
D3,根据确定的所有文件或文件夹属性所在记录项的记录起止地址将文件分配表中所有文件或文件夹属性读入内存。D3. Read all the file or folder attributes in the file allocation table into the memory according to the determined start and end addresses of the record items where the attributes of all the files or folders are located.
在确定文件分配表中所有文件或文件夹属性所在记录项的记录起止地址之后,便可以将整个文件分配表一次性或分段读入内存,包括所有文件或文件夹属性,也即进行一次或几次I/O操作。After determining the record start and end addresses of all file or folder attributes in the file allocation table, the entire file allocation table can be read into the memory at one time or in sections, including all file or folder attributes, that is, once or Several I/O operations.
读取主文件表的内容的其中一种方式与前述的读取文件分配表的内容的方式相同,即通过BPB获取主文件表的起始地址和大小,然后根据主文件表的偏移量确定主文件表中所有文件或文件夹属性所在记录项的记录起止地址,将整个主文件表所有文件或文件夹属性一次或分段读入内存。One of the ways to read the content of the main file table is the same as the above-mentioned way to read the content of the file allocation table, that is, to obtain the starting address and size of the main file table through BPB, and then determine it according to the offset of the main file table The record start and end addresses of all file or folder attributes in the master file table, and read all the file or folder attributes of the entire master file table into the memory at one time or in segments.
因为NTFS分区的特殊性,读取主文件表的内容还可以直接通过CreateFile打开元文件$MFT来获取整个主文件表的所有文件或文件夹属性所在记录项的记录地址,并根据文件或文件夹属性所在记录项的记录地址来获取文件或文件夹属性,然后将所有文件或文件夹属性一次或分段读入内存中。Because of the particularity of the NTFS partition, to read the content of the master file table, you can also directly open the metafile $MFT through CreateFile to obtain the record addresses of the record items where all the file or folder attributes of the entire master file table are located, and according to the file or folder The record address of the record item where the attribute is located to obtain the file or folder attribute, and then read all the file or folder attributes into the memory at one time or in segments.
进一步地,还可以获取文件或文件夹在硬盘中的存放位置,从而便于后续查找特定的文件或文件夹以及对所有文件或文件夹进行管理。Further, the storage location of the file or folder in the hard disk can also be obtained, so as to facilitate subsequent search for a specific file or folder and management of all files or folders.
步骤103,在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹。
其中,文件分配表或主文件表里一个记录项对应一个文件或文件夹,通过遍历所有记录项中的文件或文件夹属性将整个分区上的所有文件及文件夹列出,从而可以实现快速查找全部或部分文件或文件夹。Among them, a record item in the file allocation table or master file table corresponds to a file or folder, and all files and folders on the entire partition are listed by traversing the file or folder attributes in all record items, so that quick search can be realized All or part of a file or folder.
对于文件分配表来说,每个记录项占用32个字节,其中,前10个字节是文件名(Dos文件名规则,即短文件名),接下来有1个字节记录文件属性,1个字节是保留的,然后依次是创建时间,创建日期,最后访问日期,总共占用了几个簇,最后修改日期,第一个簇的地址,文件大小。因为每个数据所占用的字节数较少,因此直接通过遍历整个数据来获取相关的信息。具体的,从第一个数据的记录起始地址开始,每次偏移数据占用的字节数,即32个字节,就能遍历所有文件或文件夹信息,以获取文件或文件夹的属性信息。For the file allocation table, each record item occupies 32 bytes, among which, the first 10 bytes are the file name (Dos file name rule, that is, short file name), and then there is 1 byte to record the file attribute, 1 byte is reserved, followed by creation time, creation date, last access date, how many clusters are occupied in total, last modification date, address of the first cluster, file size. Because the number of bytes occupied by each data is small, relevant information can be obtained directly by traversing the entire data. Specifically, starting from the record start address of the first data, the number of bytes occupied by each offset data, that is, 32 bytes, can traverse all file or folder information to obtain the attributes of the file or folder information.
对于主文件表来说,每个记录项占用1024个字节,文件或文件夹属性占用前512个字节,在确定文件或文件夹所在记录项的记录起始地址后,往后读取512个字节,便可以获取到文件或文件夹的属性信息。因此,在查找时,还可以先确定文件或文件夹属性的存储位置,然后再在查找到的存储位置来读取相关属性,无需遍历整个记录项,从而可以节省查找时间。具体的,主文件表中,每个文件或文件夹所有属性信息都记录在该其所在记录项第一个“FILE0”开头的区域往后512个字节中,通过找到第一个“FILE0”开头的区域,然后往后读取512个字节也可以获取到属性信息。For the main file table, each record item occupies 1024 bytes, and the file or folder attribute occupies the first 512 bytes. After determining the record start address of the record item where the file or folder is located, read 512 bytes later Byte, you can get the attribute information of the file or folder. Therefore, when searching, it is also possible to first determine the storage location of the file or folder attributes, and then read the relevant attributes at the found storage location, without traversing the entire record item, thereby saving search time. Specifically, in the main file table, all attribute information of each file or folder is recorded in the 512 bytes after the area beginning with the first "FILE0" of the record item where it is located. By finding the first "FILE0" The area at the beginning, and then read 512 bytes later to get attribute information.
另外,因为文件分配表或主文件表记录了文件或文件夹的详细信息,因此在查找时,可以加入文件或文件夹特征作为查找条件,在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹,从而提高查找速度。另外,还可以根据需要展示查找到的文件或文件夹。其中,查找条件可以包括文件名,创建日期,最后访问日期,大小等等。通过添加查找条件可以使本发明的文件或文件夹查找方法应用于多种场景的文件查找,如重复文件或文件夹查找、0字节文件或文件夹查找、指定文件或文件夹查找,以及垃圾文件查找等等。In addition, because the file allocation table or the main file table records the detailed information of the file or folder, when searching, you can add the characteristics of the file or folder as the search condition, and search through all the file or folder attributes read into the memory All or part of a file or folder, thereby increasing search speed. In addition, the found files or folders can also be displayed as required. Among them, the search criteria can include file name, creation date, last access date, size and so on. By adding search conditions, the file or folder search method of the present invention can be applied to file search in various scenarios, such as duplicate file or folder search, 0-byte file or folder search, specified file or folder search, and garbage file lookup and more.
进一步地,还可以根据需要删除查找到的文件或文件夹。例如删除重复文件或文件夹、垃圾文件、0字节文件或文件夹等等。Further, the found files or folders may also be deleted as required. For example, delete duplicate files or folders, junk files, 0-byte files or folders, and more.
进一步地,当出现新的硬盘分区格式时,可以从服务器中获取该分区格式下文件或文件夹属性的记录地址,从而根据文件或文件夹属性的记录地址将文件或文件夹属性读入内存中。Further, when a new hard disk partition format appears, the record address of the file or folder attribute in the partition format can be obtained from the server, so that the file or folder attribute can be read into the memory according to the record address of the file or folder attribute .
下面,以windows操作系统为例对前述的文件或文件夹查找方法进行说明,假设硬盘的分区采用NTFS格式,需要在C盘进行文件查找,那么具体过程如下所述:Next, take the Windows operating system as an example to illustrate the above-mentioned file or folder search method. Assume that the partition of the hard disk adopts NTFS format, and the file search needs to be performed on the C drive. The specific process is as follows:
使用Windows API CreateFile来打开目标驱动器,读取前512个字节,即引导记录区,从第25字节开始是BPB文件,MFT的起始地址可以从BPB中读取,具体是BPB中的第49-57字节。其中BPB中的头两个字节定义了每扇区字节数,接下来的2个字节定义了每个簇有几个扇区,第41字节到49字节是此分区总共有多少扇区。以上文件或文件夹可以计算出每簇的大小=每扇区字节数*每个簇的扇区数,每簇的大小通常是4KB,但在格式化时也可以指定为其它大小。取得MFT地址后再次调用ReadFile来读取整个MFT。MFT的每个记录段长度为1024个字节。Use Windows API CreateFile to open the target drive, read the first 512 bytes, that is, the boot record area, starting from the 25th byte is the BPB file, the starting address of the MFT can be read from the BPB, specifically the first BPB in the BPB 49-57 bytes. The first two bytes in BPB define the number of bytes per sector, the next two bytes define how many sectors each cluster has, and the 41st to 49th bytes are the total number of bytes in this partition sector. The above files or folders can calculate the size of each cluster = the number of bytes per sector * the number of sectors in each cluster. The size of each cluster is usually 4KB, but it can also be specified as other sizes when formatting. After obtaining the MFT address, call ReadFile again to read the entire MFT. Each record segment of the MFT is 1024 bytes long.
开始遍历MFT来找到所有文件和文件夹。具体方法是:找到第一个“FILE0”开头的区域,往后读取512个字节,所有与这个文件或文件夹相关的属性全部在这512个字节里,包括文件名,是否目录,文件大小,文件所占用的起始簇号,占了多少个簇,创建日期,访问日期等等。此处,只读前512字节而不是1024字节,是因为后面512节点是数据段,一些小于512字节的文件会被直接存在MFT里,对查找文件而言,读取前512字节就可以实现查找。然后往后偏移1024字节读取下一个文件内容,以此类推,直至所有文件信息读取完,即可完成查找。Start traversing the MFT to find all files and folders. The specific method is: find the first area beginning with "FILE0", read 512 bytes later, all the attributes related to this file or folder are all in these 512 bytes, including the file name, whether it is a directory, File size, starting cluster number occupied by the file, how many clusters it occupies, creation date, access date, etc. Here, only the first 512 bytes are read instead of 1024 bytes, because the following 512 nodes are data segments, and some files smaller than 512 bytes will be directly stored in the MFT. For searching files, the first 512 bytes are read You can find it. Then offset 1024 bytes to read the content of the next file, and so on, until all file information is read, and the search can be completed.
参照图3,示出本发明的一种文件或文件夹查找装置实施例,包括:主引导记录区内容读取模块10、记录获取模块20和查找模块30。Referring to FIG. 3 , it shows an embodiment of a file or folder search device of the present invention, which includes: a master boot record area
主引导记录区内容读取模块10,用于读取主引导记录区的内容,获取硬盘分区格式。其中,硬盘分区格式通常为FAT12,FAT16,FAT32和NTFS。The master boot record area
记录获取模块20,用于根据硬盘分区格式获取所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址将所有文件或文件夹属性读入内存。其中,当硬盘分区格式为FAT12,FAT1 6或FAT32时,记录获取模块20为文件分配表记录获取模块,用于从文件分配表获取所有文件或文件夹属性的记录地址。当硬盘格式分区为NTFS时,记录获取模块20为主文件表记录获取模块,用于当从主文件表中获取所有文件或文件夹属性的记录地址。The
查找模块30,用于在读入内存的所有文件或文件夹属性中遍历查找全部或部分文件或文件夹。The
其中,文件分配表记录获取模块包括文件分配表起始地址和大小获取单元、记录地址确定单元和记录内容读取单元。其中,文件分配表起始地址和大小获取单元,用于读取BPB的内容,获取文件分配表的起始地址和大小。记录地址确定单元,用于确定文件分配表中所有文件或文件夹的记录起止地址。记录内容读取单元,用于根据确定的所有文件或文件夹属性所在记录项的记录起止地址将文件分配表中所有文件或文件夹属性读入内存。Wherein, the file allocation table record acquisition module includes a file allocation table start address and size acquisition unit, a record address determination unit and a record content reading unit. Wherein, the start address and size acquisition unit of the file allocation table is used to read the content of the BPB and obtain the start address and size of the file allocation table. The recording address determination unit is used for determining the recording start and end addresses of all files or folders in the file allocation table. The record content reading unit is used for reading all the file or folder attributes in the file allocation table into the memory according to the determined record start and end addresses of the record items where the attributes of all files or folders are located.
主文件表记录获取模块包括主文件表起始地址和大小获取单元、记录地址确定单元和记录内容读取单元。其中,主文件表起始地址和大小获取单元,用于读取BPB的内容,获取主文件表的起始地址和大小。记录地址确定单元,用于确定主文件表所有文件或文件夹的记录起止地址。记录内容读取单元,用于根据确定的所有文件或文件夹属性所在记录项的记录起止地址将主文件表中所有文件或文件夹属性读入内存。The master file table record acquisition module includes a master file table start address and size acquisition unit, a record address determination unit and a record content reading unit. Wherein, the starting address and size acquisition unit of the main file table is used to read the content of the BPB and obtain the starting address and size of the main file table. The record address determination unit is used to determine the record start and end addresses of all files or folders in the master file table. The record content reading unit is used for reading all file or folder attributes in the main file table into the memory according to the determined record start and end addresses of the record items where the attributes of all files or folders are located.
另外,主文件表记录获取模块也可以包括元文件打开单元,用于通过CreateFile打开元文件$MFT来获取整个主文件表的所有文件或文件夹属性的记录地址,并根据所述文件或文件夹属性的记录地址获取所述文件或文件夹属性。In addition, the master file table record acquisition module can also include a metafile opening unit, which is used to open the metafile $MFT through CreateFile to obtain the record addresses of all files or folder attributes of the entire master file table, and according to the file or folder Attribute Record Address Gets the file or folder attribute.
进一步地,查找模块包括文件或文件夹属性遍历单元和/或属性信息区域确定模块。其中,文件或文件夹属性遍历单元用于遍历每一个文件或文件夹属性,获取文件或文件夹属性。属性信息区域确定模块,用于确定主文件表中文件或文件夹属性的存储位置,对所述存储位置进行查找。Further, the search module includes a file or folder attribute traversal unit and/or an attribute information area determination module. Wherein, the file or folder attribute traversal unit is used for traversing each file or folder attribute to obtain the file or folder attribute. The attribute information area determination module is used to determine the storage location of the file or folder attribute in the master file table, and search the storage location.
进一步地,文件或文件夹查找装置还包括查找条件添加模块和展示模块。查找条件添加模块,用于在查找时加入加入的文件或文件夹特征作为查找条件。例如,文件名,创建日期,最后访问日期,大小等等的查找条件。展示模块,用于展示查找到的文件或文件夹。Further, the file or folder search device also includes a search condition adding module and a display module. The search condition adding module is used to add the added file or folder characteristics as a search condition when searching. For example, search criteria for file name, creation date, last access date, size, etc. The display module is used to display the found files or folders.
进一步地,文件或文件夹查找装置还包括处理模块,用于删除查找到的文件或文件夹。Further, the device for searching for files or folders also includes a processing module for deleting the found files or folders.
进一步地,文件或文件夹查找装置还包括文件或文件夹属性夹记录地址获取模块,用于在出现新的硬盘分区格式,从服务器中获取文件或文件夹属性的记录地址。Further, the file or folder search device also includes a file or folder attribute folder record address acquisition module, which is used to obtain the record address of the file or folder attribute from the server when a new hard disk partition format appears.
进一步地,所述记录获取模块还包括一次读取单元,用于将所有文件或文件夹属一次读入内存;或分段读取单元,用于将所有文件或文件夹属性分段读入内存。Further, the record acquisition module also includes a one-time reading unit, which is used to read all file or folder attributes into the memory at one time; or a segmented read unit, which is used to read all file or folder attributes into the memory in segments .
本发明的文件或文件夹查找方法和装置通过读取主引导记录区中所记载的文件或文件夹记录的起始地址和大小来确定每个文件或文件夹记录的地址,从而将所有文件或文件夹记录一次或分段读入到内存中,然后在内存中遍历所有的文件或文件夹记录来对文件进行查找。此种方式通过一次或几次I/O操作来实现文件查找,可以避免因为频繁进行I/O操作而造成的查找速度较慢的情况,提高查找速度以及客户端的响应速度,避免对客户端资源进行不必要的占用。The file or folder search method and device of the present invention determine the address of each file or folder record by reading the start address and size of the file or folder record recorded in the master boot record area, so that all files or folders The folder records are read into the memory once or segmented, and then all the files or folder records are traversed in the memory to find the files. This method realizes the file search through one or several I/O operations, which can avoid the slow search speed caused by frequent I/O operations, improve the search speed and the response speed of the client, and avoid resource allocation on the client. Unnecessary occupation.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上对本发明所提供的文件或文件夹查找方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The file or folder search method and device provided by the present invention have been introduced in detail above. The principles and implementation methods of the present invention have been explained by using specific examples in this paper. The descriptions of the above embodiments are only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. Invention Limitations.
Claims (27)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101639540A CN102289451A (en) | 2011-06-17 | 2011-06-17 | Method and device for searching files or folders |
PCT/CN2012/076359 WO2012171434A1 (en) | 2011-06-17 | 2012-05-31 | Method and device for finding files or folders |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101639540A CN102289451A (en) | 2011-06-17 | 2011-06-17 | Method and device for searching files or folders |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102289451A true CN102289451A (en) | 2011-12-21 |
Family
ID=45335883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101639540A Pending CN102289451A (en) | 2011-06-17 | 2011-06-17 | Method and device for searching files or folders |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102289451A (en) |
WO (1) | WO2012171434A1 (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012171434A1 (en) * | 2011-06-17 | 2012-12-20 | 北京奇虎科技有限公司 | Method and device for finding files or folders |
CN103198119A (en) * | 2013-04-02 | 2013-07-10 | 浪潮电子信息产业股份有限公司 | Method for fast searching all chained files having same repeating data deleting identification |
CN104699688A (en) * | 2013-12-04 | 2015-06-10 | 杭州鹰湾科技有限公司 | File searching method and electronic device |
CN104915462A (en) * | 2015-07-14 | 2015-09-16 | 魅族科技(中国)有限公司 | File management method and system |
CN105045528A (en) * | 2015-06-24 | 2015-11-11 | 武汉烽火众智数字技术有限责任公司 | Fast FAT32 disk partition traversal and file searching method |
CN105589888A (en) * | 2014-10-24 | 2016-05-18 | 中兴通讯股份有限公司 | Method and device for managing files in equipment |
CN105868820A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | U disk device identification method and apparatus, and mobile device |
CN106446014A (en) * | 2016-08-26 | 2017-02-22 | 维沃移动通信有限公司 | File searching method and mobile terminal |
CN107168905A (en) * | 2017-05-11 | 2017-09-15 | 广东欧珀移动通信有限公司 | A kind of document display method, device, storage medium and mobile terminal |
CN108647280A (en) * | 2018-05-03 | 2018-10-12 | 北京云中融信网络科技有限公司 | A kind of method and apparatus of memory communicating information |
CN108763413A (en) * | 2018-05-23 | 2018-11-06 | 唐山高新技术产业园区兴荣科技有限公司 | Data memory format and its data search localization method |
CN110334065A (en) * | 2019-07-11 | 2019-10-15 | 中国联合网络通信集团有限公司 | A file processing method and system |
CN110825699A (en) * | 2019-11-08 | 2020-02-21 | 北京天地和兴科技有限公司 | Method for rapidly counting number of disk files in C # program |
CN112181910A (en) * | 2020-09-25 | 2021-01-05 | 炬芯科技股份有限公司 | Extended short file name generation method, file access method and equipment |
CN112307033A (en) * | 2020-11-23 | 2021-02-02 | 杭州迪普科技股份有限公司 | Method, device and equipment for reconstructing data packet file |
CN114416656A (en) * | 2021-12-24 | 2022-04-29 | 新华三云计算技术有限公司 | A method, device and storage medium for remotely operating a folder |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1341237A (en) * | 1999-10-21 | 2002-03-20 | 松下电器产业株式会社 | Semiconductor memory card access apparatus, computer-readable recording medium, an initialization method, and semiconductor memory card |
CN101650737A (en) * | 2009-09-15 | 2010-02-17 | 福州瑞芯微电子有限公司 | Method for rapidly opening files based on FAT system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100444166C (en) * | 2005-12-16 | 2008-12-17 | 北京中星微电子有限公司 | Position-based interface access method and device for FAT file system |
CN102289451A (en) * | 2011-06-17 | 2011-12-21 | 奇智软件(北京)有限公司 | Method and device for searching files or folders |
-
2011
- 2011-06-17 CN CN2011101639540A patent/CN102289451A/en active Pending
-
2012
- 2012-05-31 WO PCT/CN2012/076359 patent/WO2012171434A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1341237A (en) * | 1999-10-21 | 2002-03-20 | 松下电器产业株式会社 | Semiconductor memory card access apparatus, computer-readable recording medium, an initialization method, and semiconductor memory card |
CN101650737A (en) * | 2009-09-15 | 2010-02-17 | 福州瑞芯微电子有限公司 | Method for rapidly opening files based on FAT system |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012171434A1 (en) * | 2011-06-17 | 2012-12-20 | 北京奇虎科技有限公司 | Method and device for finding files or folders |
CN103198119A (en) * | 2013-04-02 | 2013-07-10 | 浪潮电子信息产业股份有限公司 | Method for fast searching all chained files having same repeating data deleting identification |
CN104699688A (en) * | 2013-12-04 | 2015-06-10 | 杭州鹰湾科技有限公司 | File searching method and electronic device |
CN105589888A (en) * | 2014-10-24 | 2016-05-18 | 中兴通讯股份有限公司 | Method and device for managing files in equipment |
CN105045528A (en) * | 2015-06-24 | 2015-11-11 | 武汉烽火众智数字技术有限责任公司 | Fast FAT32 disk partition traversal and file searching method |
CN104915462A (en) * | 2015-07-14 | 2015-09-16 | 魅族科技(中国)有限公司 | File management method and system |
CN105868820A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | U disk device identification method and apparatus, and mobile device |
CN106446014A (en) * | 2016-08-26 | 2017-02-22 | 维沃移动通信有限公司 | File searching method and mobile terminal |
CN107168905A (en) * | 2017-05-11 | 2017-09-15 | 广东欧珀移动通信有限公司 | A kind of document display method, device, storage medium and mobile terminal |
CN108647280A (en) * | 2018-05-03 | 2018-10-12 | 北京云中融信网络科技有限公司 | A kind of method and apparatus of memory communicating information |
CN108763413A (en) * | 2018-05-23 | 2018-11-06 | 唐山高新技术产业园区兴荣科技有限公司 | Data memory format and its data search localization method |
CN108763413B (en) * | 2018-05-23 | 2021-07-23 | 唐山高新技术产业园区兴荣科技有限公司 | Data searching and positioning method based on data storage format |
CN110334065A (en) * | 2019-07-11 | 2019-10-15 | 中国联合网络通信集团有限公司 | A file processing method and system |
CN110334065B (en) * | 2019-07-11 | 2022-02-11 | 中国联合网络通信集团有限公司 | A file processing method and system |
CN110825699A (en) * | 2019-11-08 | 2020-02-21 | 北京天地和兴科技有限公司 | Method for rapidly counting number of disk files in C # program |
CN112181910A (en) * | 2020-09-25 | 2021-01-05 | 炬芯科技股份有限公司 | Extended short file name generation method, file access method and equipment |
CN112181910B (en) * | 2020-09-25 | 2024-06-04 | 炬芯科技股份有限公司 | Extended short file name generation method, file access method and device |
CN112307033A (en) * | 2020-11-23 | 2021-02-02 | 杭州迪普科技股份有限公司 | Method, device and equipment for reconstructing data packet file |
CN112307033B (en) * | 2020-11-23 | 2023-04-25 | 杭州迪普科技股份有限公司 | Reconstruction method, device and equipment of data packet file |
CN114416656A (en) * | 2021-12-24 | 2022-04-29 | 新华三云计算技术有限公司 | A method, device and storage medium for remotely operating a folder |
Also Published As
Publication number | Publication date |
---|---|
WO2012171434A1 (en) | 2012-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102289451A (en) | Method and device for searching files or folders | |
US11068455B2 (en) | Mapper tree with super leaf nodes | |
KR102023351B1 (en) | Method and apparatus for analyzing data to facilitate allocation in a storage device | |
KR102128138B1 (en) | Hydration and dehydration with placeholders | |
CN107506447A (en) | A kind of small documents reading/writing method and system based on local file system | |
WO2017185579A1 (en) | Method and apparatus for data storage | |
CN109804359A (en) | For the system and method by write back data to storage equipment | |
CN107817946B (en) | Method and device for reading and writing data of hybrid storage device | |
CN107729558A (en) | Method, system, device and the computer-readable storage medium that file system fragmentation arranges | |
US9430492B1 (en) | Efficient scavenging of data and metadata file system blocks | |
CN113568582B (en) | Data management method, device and storage equipment | |
CN101876956B (en) | File access method and device of SD (Secure Digital) card | |
US20170286442A1 (en) | File system support for file-level ghosting | |
CN113853778B (en) | Cloning method and device of file system | |
US8046391B2 (en) | Storage apparatus and its file control method and storage system | |
CN106709014A (en) | File system conversion method and apparatus | |
JP6008820B2 (en) | File system for realizing WORM (Write OnceReadMany) | |
JP4502375B2 (en) | File system and control method thereof | |
TW201021027A (en) | Disk layout method for object-based storage device | |
KR20090042570A (en) | File management device and method and storage device | |
CN107436736A (en) | The storage method and device of file in a kind of HDFS | |
CN103970671B (en) | Allocating Additional Requested Storage Space For A Data Set In A First Managed Space In A Second Managed Space | |
EP3436990B1 (en) | Systems and methods for enabling modifications of multiple data objects within a file system volume | |
CN115904263A (en) | Data migration method, system, equipment and computer readable storage medium | |
CN106033454B (en) | Formatting method, processing method and device of virtual file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20111221 |