KR20060056626A - Method of extracting file's information - Google Patents

Method of extracting file's information Download PDF

Info

Publication number
KR20060056626A
KR20060056626A KR1020040095781A KR20040095781A KR20060056626A KR 20060056626 A KR20060056626 A KR 20060056626A KR 1020040095781 A KR1020040095781 A KR 1020040095781A KR 20040095781 A KR20040095781 A KR 20040095781A KR 20060056626 A KR20060056626 A KR 20060056626A
Authority
KR
South Korea
Prior art keywords
file
information
directory
extracting
name
Prior art date
Application number
KR1020040095781A
Other languages
Korean (ko)
Inventor
오혁
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020040095781A priority Critical patent/KR20060056626A/en
Publication of KR20060056626A publication Critical patent/KR20060056626A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information 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

본 발명은 FAT(File Allocation Table) 파일 시스템을 사용하는 장치에서 파일정보를 추출하는 방법에 관한 것이다.The present invention relates to a method of extracting file information from a device using a file allocation table (FAT) file system.

FAT 파일 시스템을 사용하는 장치에서 파일정보를 추출하는 방법은 검색하고자 하는 디렉토리(directory)에 포함된 파일의 정보를 추출하기 위해서 상기 파일을 위한 디렉토리 엔트리(directory entry)에서 상기 파일의 이름정보를 추출하는 것과 동시에 상기 파일의 확장자, 속성, 최근수정시간, 최근수정날짜, 시작 클러스터 및 사이즈의 정보를 추출하는 제 1과정과 상기 디렉토리에 포함된 파일들의 정보가 모두 추출되기 전까지 정보가 추출된 상기 파일 외에 남아있는 파일들의 정보를 추출하기 위한 상기 제 1과정을 진행하는 제 2과정을 구비함을 특징으로 한다.
A method of extracting file information from a device using a FAT file system includes extracting name information of a file from a directory entry for the file in order to extract information of a file included in a directory to be searched. At the same time as the first process of extracting information of the extension, attribute, last modified time, last modified date, start cluster, and size of the file, and the file from which information is extracted until all the information of the files included in the directory is extracted. In addition, it characterized in that it comprises a second process for proceeding the first process for extracting information of the remaining files.

FAT, 파일 시스템, 디렉토리, 디렉토리 엔트리FAT, file system, directory, directory entry

Description

파일정보를 추출하는 방법{METHOD OF EXTRACTING FILE'S INFORMATION} How to extract file information {METHOD OF EXTRACTING FILE'S INFORMATION}             

도 1은 디렉토리 엔트리의 구조도,1 is a structural diagram of a directory entry;

도 2는 본 발명의 바람직한 실시예에 따라 파일정보를 추출하는 과정에 대한 흐름도.
2 is a flowchart illustrating a process of extracting file information according to a preferred embodiment of the present invention.

본 발명은 파일 시스템을 사용하는 장치에서 파일 정보를 추출하는 방법에 관한 것으로, 특히 FAT(File Allocation Table) 파일 시스템을 사용하는 장치에서 파일정보를 추출하는 방법에 관한 것이다.The present invention relates to a method of extracting file information from a device using a file system, and more particularly, to a method of extracting file information from a device using a file allocation table (FAT) file system.

파일 시스템이란 데이터를 파일 단위로 읽고 쓸 수 있도록 해주는 소프트웨어인데, 그 중에서도 FAT 파일 시스템은 개인용 컴퓨터에서 주로 사용되는 파일 시스템이다. FAT 파일 시스템은 개인용 컴퓨터뿐만 아니라 디지털 카메라, PDA(Personal Digital Assistants), 휴대단말기 등에서도 개인용 컴퓨터와 호환을 위해서 사용되고 있다. The file system is software that reads and writes data in file units. Among them, the FAT file system is a file system mainly used in personal computers. The FAT file system is used not only for personal computers but also for compatibility with personal computers in digital cameras, personal digital assistants (PDAs), and portable terminals.                         

FAT 파일 시스템은 파일이 저장되는 저장 매체, 예를 들면, 하드 디스크, 플로피 디스크, 플래쉬 메모리, 외장 메모리 카드 등을 나누는 단위인 클러스터를 기준으로 파일이 몇 번째 클러스터에서 몇 번째 클러스터까지 저장되어 있다는 정보를 장치에 제공한다.FAT file system is the information that files are stored from several clusters to several clusters based on the cluster that divides the storage media where files are stored, for example, hard disk, floppy disk, flash memory, external memory card, etc. To the device.

그리고 FAT 파일 시스템은 디렉토리(directory)나 파일 각각의 정보를 가지고 있는 디렉토리 엔트리(directory entry)를 제공하는데, 디렉토리 엔트리는 상기 저장 매체에 저장되는데 그 구조는 도 1과 같다.The FAT file system provides a directory entry containing a directory or file information. The directory entry is stored in the storage medium, and its structure is as shown in FIG.

도 1은 디렉토리 엔트리의 구조도이다. 도 1의 디렉토리 엔트리의 크기는 32 바이트인데 순서대로 0~8 바이트의 공간에는 파일의 이름 정보, 9~11 바이트의 공간에는 파일의 확장자 정보, 11~12 바이트의 공간에는 파일의 속성 정보, 12~22 바이트의 공간에는 예비(reserved) 공간, 23~24 바이트의 공간에는 파일의 최근 수정시간 정보, 25~26 바이트의 공간에는 파일의 최근 수정날짜 정보, 27~28 바이트의 공간에는 파일의 시작 클러스터 정보, 29~32 바이트의 공간에는 파일의 크기 정보가 저장된다.1 is a structural diagram of a directory entry. The directory entry of FIG. 1 has a size of 32 bytes, in order of file name information in spaces of 0 to 8 bytes, file extension information in spaces of 9 to 11 bytes, attribute information of files in spaces of 11 to 12 bytes, and 12 Reserved space in ~ 22 bytes, file latest modification time information in 23-24 bytes space, latest modification date of file in 25-26 bytes space, start of file in 27-28 bytes space Cluster information, file size information is stored in a space of 29 to 32 bytes.

이와 같은 체제로 구성된 FAT 파일 시스템을 사용하는 장치에서 파일의 정보 즉, 디렉토리 엔트리에 저장된 파일의 정보를 추출하는 방법은 다음과 같다. A method of extracting information of a file, that is, information of a file stored in a directory entry, in a device using a FAT file system configured as described above is as follows.

우선, 검색하고자 하는 디렉토리에 포함된 파일이 1000개 있다고 가정하면 그 구조는 다음과 같다.
First, assuming that there are 1000 files included in the directory to be searched, the structure is as follows.

디렉토리 - 파일 1(디렉토리 엔트리1) Directory-File 1 (Directory Entry1)                         

- 파일 2(디렉토리 엔트리2)File 2 (Directory Entry 2)

- 파일 3(디렉토리 엔트리3)File 3 (Directory Entry 3)

...                ...

- 파일 1000(디렉토리 엔트리1000)
-File 1000 (directory entry 1000)

이와 같이, 디렉토리에 파일이 1000개가 있으면 각각의 파일마다 파일의 정보를 가지고 있는 디렉토리 엔트리도 1000개가 있다. 상기 디렉토리에 포함된 파일들의 정보를 추출하기 위해서 FAT 파일 시스템을 사용하는 장치는 하기에 기재된 바와 같은 FAT 파일 시스템에서 제공하는 함수들을 이용한다.
Thus, if there are 1000 files in a directory, there are also 1000 directory entries that contain file information for each file. A device using the FAT file system to extract information of files included in the directory uses functions provided by the FAT file system as described below.

디렉토리 = opendir(디렉토리 이름);Directory = opendir (directory name);

파일이름 = readdir(디렉토리);Filename = readdir (directory);

while(파일이름 != NULL)while (filename! = NULL)

{{

파일이름 = readdir(디렉토리);Filename = readdir (directory);

}
}

opendir이란 함수는 상기 디렉토리의 이름을 인자(parameter)값으로 받으면, 상기 디렉토리 이름에 해당하는 디렉토리를 검색하고 검색된 디렉토리를 위한 디렉토리 엔트리와 상기 디렉토리에 포함된 파일들의 순서 정보를 제공하는 함수이다. FAT 파일 시스템을 사용하는 장치는 opendir함수로부터 상기 디렉토리를 위한 디렉토리 엔트리와 상기 디렉토리에 포함된 파일들의 순서 정보를 제공받아서 그 정보를 readdir이란 함수의 인자값으로 제공한다. 상기 readdir이란 함수는 상기 디렉토리를 위한 디렉토리 엔트리와 상기 디렉토리에 포함된 파일들의 순서 정보를 인자값으로 받으면, 상기 디렉토리에 포함된 파일의 이름 정보를 하나씩 순서에 맞게 제공하는 함수이다. When the name of the directory is received as a parameter, the opendir function searches a directory corresponding to the directory name and provides a directory entry for the searched directory and order information of the files included in the directory. A device using a FAT file system receives a directory entry for the directory and order information of files contained in the directory from the opendir function and provides the information as an argument of a function called readdir. The readdir function is a function of providing name information of files included in the directory in order one by one when receiving a directory entry for the directory and order information of the files included in the directory.

즉, FAT 파일 시스템을 사용하는 장치가 상기 opendir 함수를 통해서 제공받은 인자값을 처음으로 상기 readdir 함수에 제공하면, 상기 readdir 함수는 상기 디렉토리에 포함된 파일들 중에서 첫 번째 파일의 이름 정보를 제공한다. 그리고 FAT 파일 시스템을 사용하는 장치가 다시 상기 인자값을 상기 readdir 함수에 제공하면, 상기 readdir 함수는 상기 디렉토리에 포함된 파일들 중에서 두 번째 파일의 이름 정보를 제공한다. That is, when a device using a FAT file system provides an argument value provided through the opendir function to the readdir function for the first time, the readdir function provides name information of the first file among the files included in the directory. . When the device using the FAT file system provides the argument value to the readdir function, the readdir function provides name information of a second file among the files included in the directory.

좀 더 상세히 설명하면, 상기 readdir 함수는 인자값으로 제공받은 상기 디렉토리를 위한 디렉토리 엔트리로부터 상기 디렉토리가 저장되어 있는 시작 클러스터를 확인함으로써 상기 디렉토리의 위치를 참조하게 된다. 이에 따라 상기 디렉토리에 포함된 파일들 역시 참조함으로써 FAT 파일 시스템을 사용하는 장치는 상기 파일들의 이름 정보를 상기 파일들을 위한 디렉토리 엔트리로부터 읽어올 수 있다. 또한, FAT 파일 시스템을 사용하는 장치가 상기 readdir 함수에 상기 인자값을 제공할 때마다 상기 readdir 함수가 순서대로 파일의 이름 정보를 제공할 수 있는 이유는 상기 인자값으로 상기 디렉토리에 포함된 파일들의 순서 정보를 제공 받 기 때문이다. 상기 readdir 함수가 하나의 파일 이름 정보를 추출한 후에 바로 상기 파일들의 순서 정보를 통해서 다음 순서의 파일의 위치를 참조할 수 있기 때문에 파일의 이름 정보를 추출하는 속도는 빠르다. FAT 파일 시스템을 사용하는 장치는 readdir 함수가 상기 디렉토리에 포함된 모든 파일의 이름 정보를 추출해서 더 이상 파일의 이름 정보를 제공할 수 없을 때까지 상기 readdir 함수에 상기 인자값을 계속 제공한다.In more detail, the readdir function refers to the location of the directory by identifying the starting cluster in which the directory is stored from the directory entry for the directory provided as an argument value. Accordingly, by referring to the files included in the directory, a device using the FAT file system can read the name information of the files from the directory entry for the files. Further, whenever the device using the FAT file system provides the argument value to the readdir function, the reason that the readdir function can provide the name information of the file in order is because of the value of the files included in the directory. This is because order information is provided. The speed of extracting file name information is fast because the readdir function can refer to the location of the next file through the order information of the files immediately after the single file name information is extracted. Devices using the FAT file system continue to provide the argument value to the readdir function until the readdir function extracts the name information of all the files contained in the directory and can no longer provide the name information of the file.

다음으로, FAT 파일 시스템을 사용하는 장치에서 상기 디렉토리에 포함된 파일의 이름을 제외한 나머지 정보를 추출하기 위해서 하기에 기재된 바와 같은 stat 이란 함수를 이용한다.
Next, to extract information other than the name of a file included in the directory in a device using a FAT file system, a function stat as described below is used.

디렉토리 = opendir(디렉토리 이름);Directory = opendir (directory name);

파일이름 = readdir(디렉토리);Filename = readdir (directory);

while(파일이름 != NULL)while (filename! = NULL)

{{

파일정보 = stat(파일이름);File information = stat (filename);

파일이름 = readdir(디렉토리);Filename = readdir (directory);

}
}

상기 stat 함수는 상기 readdir 함수를 통해서 제공되는 파일의 이름 정보를 인자값으로 받아서 상기 파일의 이름과 일치하는 파일을 검색해서 상기 파일의 이 름과 일치하는 파일이 검색되면 상기 검색된 파일의 이름 정보를 제외한 나머지 정보를 상기 파일의 디렉토리 엔트리를 통해서 제공하는 함수이다. 상기 stat 함수는 인자값으로 받은 파일의 이름과 일치하는 파일을 검색하기 위해서 상기 디렉토리에 포함된 파일들의 이름을 순서대로 상기 인자값과 비교한다. 상기 인자값과 일치하는 파일이 검색되면 상기 stat 함수는 상기 검색된 파일의 이름 정보를 제외한 나머지 정보를 상기 파일의 디렉토리 엔트리로를 통해서 제공한다.The stat function receives the name information of the file provided through the readdir function as an argument value, searches for a file matching the name of the file, and if a file matching the name of the file is found, the name information of the searched file is retrieved. This function provides the remaining information through the directory entry of the file. The stat function compares the names of the files included in the directory with the argument values in order to search for a file matching the name of the file received as the argument value. When a file matching the argument value is found, the stat function provides the remaining information except the name information of the found file through the directory entry of the file.

상기 stat 함수는 상기 디렉토리에 포함된 파일들의 이름을 순서대로 인자값과 비교하므로 만약 상기 인자값으로 받은 파일의 이름이 파일 1, 2, 3과 같이 상기 디렉토리에서 앞쪽에 위치한 파일의 이름이라면 그 비교시간이 짧다.The stat function compares the names of the files included in the directory with the argument values in order. If the name of the file received as the argument value is the name of a file located in the front of the directory such as files 1, 2, and 3, the comparison Short time

그런데, 인자값으로 받은 파일의 이름이 파일 1000과 같이 상기 디렉토리에서 뒤쪽에 위치한 파일의 이름이라면, 상기 stat 함수에서 수행되는 비교시간은 길어진다. 왜냐하면, 파일 1000과 일치하는 파일의 이름을 찾기 위해서 상기 stat 함수는 상기 디렉토리에 포함된 파일을 순서대로 하나씩 상기 인자값과 비교하기 때문에 상기 디렉토리에서 제일 뒤쪽에 위치한 파일 1000과 일치하는 파일을 찾기 위한 비교시간은 길어진다.However, if the name of the file received as an argument is the name of a file located later in the directory, such as file 1000, the comparison time performed by the stat function becomes long. Because the stat function compares the files included in the directory with the argument values one by one in order to find the name of the file that matches the file 1000, The comparison time is long.

따라서 FAT 파일 시스템을 사용하는 장치에서 소정 디렉토리의 파일의 정보를 추출 할 경우에 상기 소정 디렉토리에 포함된 파일이 많이 있을수록 파일의 정보가 추출되기 위해서 수행되는 상기 stat 함수의 비교시간은 길어진다. 이에 따라 FAT 파일 시스템을 사용하는 장치에서 파일 정보를 추출하는 속도는 느려지는 문제점이 발생한다. Therefore, in the case of extracting the information of a file of a predetermined directory in a device using a FAT file system, the more time is included in the predetermined directory, the longer the comparison time of the stat function is performed to extract the information of the file. Accordingly, a problem of slowing down the speed of extracting file information from a device using a FAT file system occurs.                         

상기와 같은 문제점을 해결하기 위해서 디렉토리에 포함될 수 있는 파일의 개수를 제한하는 방법, 예를 들면, 한 디렉토리에 포함될 수 있는 파일의 개수를 100개까지 제한하는 방법이 있다. 일부 디지털 카메라나 휴대단말기 등에서 이와 같은 방법을 사용하지만 이는 사용자들에게 파일을 저장할 수 있는 개수에 제한을 줌으로써 사용자들에게 불편함을 주는 문제점이 있다.
In order to solve the above problems, there is a method of limiting the number of files that can be included in a directory, for example, a method of limiting the number of files that can be included in one directory to 100. Some digital cameras and portable terminals use such a method, but this has a problem that inconveniences users by limiting the number of files that can be stored.

따라서 본 발명의 목적은 FAT 파일 시스템을 사용하는 장치에서 소정 디렉토리에 포함된 파일이 많더라도 속도가 느려지지 않게 파일정보를 추출하는 방법을 제공하는 데 있다.Accordingly, it is an object of the present invention to provide a method for extracting file information so that a device using a FAT file system does not slow down even if a large number of files are included in a predetermined directory.

상기한 목적을 달성하기 위한 본 발명에 따른 FAT 파일 시스템을 사용하는 장치에서 파일정보를 추출하는 방법은 검색하고자 하는 디렉토리에 포함된 파일의 정보를 추출하기 위해서 상기 파일을 위한 디렉토리 엔트리에서 상기 파일의 이름정보를 추출하는 것과 동시에 상기 파일의 확장자, 속성, 최근수정시간, 최근수정날짜, 시작클러스터 및 사이즈의 정보를 추출하는 제 1과정과 상기 디렉토리에 포함된 파일들의 정보가 모두 추출되기 전까지 정보가 추출된 상기 파일 외에 남아있는 파일들의 정보를 추출하기 위한 상기 제 1과정을 진행하는 제 2과정을 구비함을 특징으로 한다.
A method of extracting file information in a device using a FAT file system according to the present invention for achieving the above object is to extract information of a file included in a directory to be searched. The first process of extracting the information of the extension, the attribute, the latest modification time, the latest modification date, the start cluster, and the size of the file and extracting the name information and the information until the information of the files included in the directory are all extracted. And a second step of proceeding with the first step for extracting information of remaining files in addition to the extracted file.

이하, 본 발명의 바람직한 실시예들을 첨부한 도면을 참조하여 상세히 설명한다. 또한 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략한다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, detailed descriptions of well-known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted.

우선 전술한 readdir 함수와 stat 함수의 특징을 설명하면, 상기 readdir 함수에서 파일 이름 정보를 제공한다는 것은 파일의 이름 정보를 제공하기 위해서 상기 파일을 위한 디렉토리 엔트리에 포함된 상기 파일의 정보들 중에서 파일의 이름 정보만 읽어온다는 것이다. 또한, 상기 stat 함수에서 파일 정보를 제공한다는 것은 인자값으로 받은 소정 파일의 이름과 일치하는 파일을 검색해서 검색된 파일의 디렉토리 엔트리에 포함된 상기 파일의 정보들 중에서 파일의 이름 정보를 제외한 나머지 정보를 읽어온다는 것이다.First, the characteristics of the above-described readdir function and stat function will be described. Providing the file name information in the readdir function means that the information of the file among the information of the file included in the directory entry for the file to provide the file name information Only name information is read. In addition, providing the file information in the stat function is to search for a file matching the name of the predetermined file received as an argument value and to store the remaining information except for the file name information among the information of the file included in the directory entry of the retrieved file. To read.

본 발명의 바람직한 실시예에서는 상기 readdir 함수가 파일 이름 정보를 제공하는 속도가 빠르다는 것을 이용해서 상기 readdir 함수가 파일의 이름 정보를 추출할 때 동시에 나머지 정보도 추출할 수 있는 방법을 readdir_stat이라는 함수로 구현해서 제공한다.In a preferred embodiment of the present invention, the method that the readdir function can extract the remaining information at the same time when the readdir function extracts the file name information by using the speed of providing the file name information to a function called readdir_stat Implement and provide

readdir_stat이라는 함수를 구현해서 파일의 이름 정보와 동시에 파일의 확장자 정보, 파일의 속성 정보, 파일의 최근 수정시간 정보, 파일의 최근 수정날짜 정보, 파일의 시작 클러스터 정보 및 파일의 크기 정보를 추출한다.A function called readdir_stat is implemented to extract file name information, file extension information, file attribute information, file latest modification time information, file latest modification date information, file start cluster information, and file size information.

이에 따라 FAT 파일 시스템을 사용하는 장치에서 상기 stat 함수를 이용하지 않아도 디렉토리 엔트리로부터 파일의 모든 정보를 제공받을 수 있다. 이와 같이 파일 정보를 추출하는 방법을 도 2의 흐름도를 참조하여 상세히 설명한다. Accordingly, the device using the FAT file system can receive all the information of the file from the directory entry without using the stat function. A method of extracting file information as described above will be described in detail with reference to the flowchart of FIG. 2.                     

도 2는 본 발명의 바람직한 실시예에 따라 파일정보를 추출하는 과정에 대한 흐름도이다.2 is a flowchart illustrating a process of extracting file information according to a preferred embodiment of the present invention.

FAT 파일 시스템을 사용하는 장치는 검색하고자 하는 디렉토리에 포함된 파일의 이름 정보를 얻기 위해서 상기 opendir 함수에 상기 디렉토리의 이름을 인자(parameter)값으로 제공한다. 상기 인자값을 제공받은 상기 opendir 함수는 상기 디렉토리 이름에 해당하는 디렉토리를 검색해서 검색된 디렉토리를 위한 디렉토리 엔트리와 상기 디렉토리에 포함된 파일들의 순서 정보를 FAT 파일 시스템을 사용하는 장치에 제공한다(S100).A device using the FAT file system provides the name of the directory as a parameter to the opendir function to obtain name information of a file included in a directory to be searched. The opendir function provided with the argument value searches a directory corresponding to the directory name and provides a directory entry for the searched directory and order information of the files included in the directory to a device using the FAT file system (S100). .

그러면, FAT 파일 시스템을 사용하는 장치는 상기 readdir_stat 함수에 상기 제공받은 상기 디렉토리를 위한 디렉토리 엔트리와 상기 디렉토리에 포함된 파일들의 순서 정보를 인자값으로 제공한다. 상기 readdir_stat 함수는 상기 순서 정보에 맞게 첫 번째 파일의 이름 정보를 상기 파일들을 위한 디렉토리 엔트리로부터 읽어올 때 동시에 파일의 확장자 정보, 파일의 속성 정보, 파일의 최근 수정시간 정보, 파일의 최근 수정날짜 정보, 파일의 시작 클러스터 정보 및 파일의 크기 정보도 읽어온다. 따라서 FAT 파일 시스템을 사용하는 장치는 상기 파일의 이름 정보와 동시에 나머지 정보도 추출할 수 있다(S200).Then, the device using the FAT file system provides the readdir_stat function with a directory entry for the provided directory and order information of the files included in the directory as argument values. The readdir_stat function reads the name information of the first file from the directory entry for the files in accordance with the order information and at the same time the file extension information, the file attribute information, the latest modification time information of the file, and the latest modification date information of the file. It also reads the file's starting cluster information and file size information. Therefore, the device using the FAT file system may extract the remaining information at the same time as the name information of the file (S200).

첫 번째 파일의 정보가 추출되면, FAT 파일 시스템을 사용하는 장치는 상기 readdir_stat 함수가 상기 디렉토리에 포함된 모든 파일의 정보가 추출됐는지 확인한다. 그리고 FAT 파일 시스템을 사용하는 장치는 모든 파일의 정보가 추출되어서 상기 readdir_stat 함수가 더 이상 파일의 정보를 제공할 수 없을 때까지 상기 S200 단계를 수행해서 다음 파일의 정보를 추출한다(S300). When the information of the first file is extracted, the device using the FAT file system checks whether the readdir_stat function extracts the information of all the files included in the directory. The device using the FAT file system extracts the information of the next file by performing the step S200 until all the file information is extracted and the readdir_stat function can no longer provide the file information (S300).

상술한 본 발명의 설명에서는 구체적인 실시 예에 관해 설명하였으나, 여러 가지 변형이 본 발명의 범위에서 벗어나지 않고 실시될 수 있다. 따라서 본 발명의 범위는 설명된 실시예에 의하여 정할 것이 아니고 특허청구범위 뿐만 아니라 특허청구범위와 균등한 것에 의해 정해져야 한다.
In the above description of the present invention, specific embodiments have been described, but various modifications may be made without departing from the scope of the present invention. Therefore, the scope of the present invention should not be defined by the described embodiments, but should be determined not only by the claims but also by the equivalents of the claims.

상술한 바와 같은 본 발명에 따르면, 디렉토리에 포함된 파일이 많더라도 사용자는 파일 검색의 속도가 느려지지 않는 것을 느끼지 않는 사용상의 편리함을 도모할 수 있는 효과가 있다.According to the present invention as described above, even if a large number of files included in the directory, the user can achieve the convenience of use that does not feel that the speed of file search does not slow down.

또한, 디렉토리에 포함될 수 있는 파일의 개수를 제한하지 않더라도 파일 검색 속도에 영향을 주지 않는 효과가 있다.In addition, even if the number of files that can be included in the directory is not limited, the file search speed is not affected.

Claims (1)

FAT(File Allocation Table) 파일 시스템을 사용하는 장치에서 파일정보를 추출하는 방법에 있어서,A method of extracting file information from a device using a file allocation table (FAT) file system, 검색하고자 하는 디렉토리(directory)에 포함된 파일의 정보를 추출하기 위해서 상기 파일을 위한 디렉토리 엔트리(directory entry)에서 상기 파일의 이름정보를 추출하는 것과 동시에 상기 파일의 확장자, 속성, 최근수정시간, 최근수정날짜, 시작클러스터 및 사이즈의 정보를 추출하는 제 1과정; 및In order to extract information of a file included in a directory to be searched, the name information of the file is extracted from a directory entry for the file, and at the same time, an extension, an attribute, a recent modification time, and a recent time of the file are extracted. Extracting information of a modification date, a start cluster, and a size; And 상기 디렉토리에 포함된 파일들의 정보가 모두 추출되기 전까지 정보가 추출된 상기 파일 외에 남아있는 파일들의 정보를 추출하기 위한 상기 제 1과정을 진행하는 제 2과정을 구비함을 특징으로 하는 방법. And a second step of proceeding with the first step of extracting information of remaining files other than the file from which information is extracted until all information of files included in the directory is extracted.
KR1020040095781A 2004-11-22 2004-11-22 Method of extracting file's information KR20060056626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040095781A KR20060056626A (en) 2004-11-22 2004-11-22 Method of extracting file's information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040095781A KR20060056626A (en) 2004-11-22 2004-11-22 Method of extracting file's information

Publications (1)

Publication Number Publication Date
KR20060056626A true KR20060056626A (en) 2006-05-25

Family

ID=37152320

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040095781A KR20060056626A (en) 2004-11-22 2004-11-22 Method of extracting file's information

Country Status (1)

Country Link
KR (1) KR20060056626A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176103B2 (en) 2008-03-12 2012-05-08 Samsung Electronics Co., Ltd. File access method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176103B2 (en) 2008-03-12 2012-05-08 Samsung Electronics Co., Ltd. File access method and system

Similar Documents

Publication Publication Date Title
US10303650B2 (en) Contiguous file allocation in an extensible file system
US9639554B2 (en) Extensible file system
US8433677B2 (en) Extending cluster allocations in an extensible file system
US9514142B2 (en) Memory device and method for content virtualization
CN106980665B (en) Data dictionary implementation method and device and data dictionary management system
CN101000614A (en) File delete method and file open method
US6976038B2 (en) Method and apparatus for real time creation and modification of a change log for multi-server synchronization
US11169968B2 (en) Region-integrated data deduplication implementing a multi-lifetime duplicate finder
CN112115002B (en) Method and device for recovering file from damaged or untrusted mechanical hard disk
US20060036663A1 (en) Method and apparatus for effective data management of files
US20090319478A1 (en) Method for improving the performance of a file system in a computing device
EP3343395B1 (en) Data storage method and apparatus for mobile terminal
JP2007080240A (en) Technique for accessing file allocation table
CN107844483B (en) File management method and device
CN112181910B (en) Extended short file name generation method, file access method and device
KR20060056626A (en) Method of extracting file's information
US20130218851A1 (en) Storage system, data management device, method and program
CN100444166C (en) Position-based interface access method and device for FAT file system
US9323753B2 (en) Method and device for representing digital documents for search applications
JP2008186053A (en) File management device, file management method and file management program
Li et al. Research on Allocator Strategy of FAT32 File System Based on Linux & Windows
JP2007148566A (en) Data writing device and data reading device
CN112181918A (en) Quick pre-allocation method for video file of camera for embedded system
US20070185888A1 (en) Recycle-free directory entry system and method
CN116841958A (en) Data processing method, terminal equipment and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application