This application claims priority from Korean Patent Application No. 10-2005-0104151, filed on Nov. 2, 2005, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
Methods and apparatuses consistent with the present invention relate to managing content file information, and more particularly, to managing content file information based on file paths.
2. Description of the Related Art
Recently, as the use of digital apparatuses such as digital cameras, digital camcorders, and digital audio players has become widely spread, various types of digital content files are being produced. These digital content files include various additional information such as ID3 tags, EXIF tags, and frame rates, in addition to file names as content file information.
Accordingly, since it is required to search for or classify the digital content files by using the above described additional information as well as file names, a related art technique has been suggested to manage the content file information by using a database including hierarchically-defined folders (or directories) wherein the content file information is placed based on the additional information or by using a file-based-database based on a file system.
However, in the related art techniques for managing content file information, the content file information is handled by using a file table and considering the full file path as a basic key.
When, for example, 1000 pieces of content file information are included in a database and a user wants to delete or rename one piece of the content file information, according to the related art techniques, the user has to compare the strings of content file information of the content files. Therefore, a long processing time (string comparing time×1000) is necessary to delete or rename one piece of the content file information.
In addition, when a folder including the 1000 pieces of the content file information is subdivided, a sub-folder name is added to the path. Therefore, since the field length necessarily includes the length of the sub-folder path, the field length of the total file path increases. As a result, the processing time is also increased. In case of the Windows Operating System, the maximum length of a file path of a content file is 255 characters.
In addition, when deleting content file information in a folder, since a user has to search for and delete the information of a content file including the folder name for each content file, a processing time as long as (the string comparing time×1000) is necessary.
The present invention provides a method, an apparatus, and a recording medium storing a program for managing content file information quickly.
The present invention also provides a method, an apparatus, and a recording medium storing a program capable of reducing the amount of string comparison between content file information pieces by reducing the length of a file path and duplicating usage of the file path.
The present invention also provides a method, and apparatus, and a recording medium storing a program for managing content file information based on file paths by separating folder paths and file names.
The present invention also provides a method, an apparatus, and a recording medium storing a program for managing content file information based on file paths, by using identification information of a folder path as a foreign key.
According to an aspect of the present invention, there is provided a method of managing content file information, the method comprising creating a folder table comprising folder paths of content files and folder path identification information corresponding to the folder paths; creating a file table comprising file names of the content files and the folder path identification information corresponding to the content files; and managing the content file information based on information included in the folder table and the file table.
According to another aspect of the present invention, there is provided an apparatus for managing content file information, the apparatus comprising a storage unit which stores at least one content file, a folder table comprising folder paths of the at least one content files and folder path identification information corresponding to the folder paths, and a file table comprising a file name corresponding to the at least one content file and the folder path identification information corresponding to the at least one content file; an information input unit which inputs information needed for managing content file information of the at least one content file; and a library module which manages the content file information stored in the storage unit and creates and updates the folder table and the file table by using information input from the information input unit and information included in the folder table and the file table.
According to another aspect of the present invention, there is provided a computer-readable recording medium storing a program for performing a method of managing content file information, wherein the method comprises creating a folder table comprising folder paths of content files and folder path identification information corresponding to the folder paths; creating a file table comprising file names of the content files and the folder path identification information corresponding to the content files; and managing the content file information based on information included in the folder table and the file table.
The above and other aspects of the present invention will become more apparent by describing in detail certain exemplary embodiments thereof with reference to the attached drawings in which:
Certain exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
The information input unit 201 inputs information needed for managing the content file information. The managing may include functions of adding, deleting, renaming, and searching for the content file information, or other such functions known in the art. Accordingly, the information input unit 201 can input a command corresponding to a desired function (for example, an adding, deleting, renaming, or searching command). In addition, the information input unit 201 can input the content file information. The content file information may include file names and folder paths of the content files, or other such information. The folder path may be defined as one folder name or a plurality of folder names.
The storage unit 202 may store real data of at least one content file. The content file may include audio, audio and video, video, text content, or a similar type of content that is typically stored.
The library module 203 manages the content file information stored in the storage unit 202 by creating and updating the folder table 204 and the file table 205 by using the information input from the information input unit 201 and the information included in the folder table 204 and the file table 205.
Namely, when the information input unit 201 requests that the content file information stored in the storage unit 202 be registered, the library module 203 adds (or records) the content file information in the folder table 204 and the file table 205 by using the information input from the input unit 201 and the information included in the folder table 204 and the file table 205. Accordingly, the information included in the folder table 204 and the file table 205 is updated.
When the information input unit 201 requests that the content file information stored in the storage unit 202 be searched for, as shown in
When the information input unit 201 requests that the content file information stored in the storage unit 202 be searched for based on folders, as shown in
When the information input unit 201 requests that the content file information stored in the storage unit 202 be deleted, as shown in
When the information input unit 201 requests that a folder be renamed, as shown in
When the information input unit 201 requests that a file be renamed, as shown in
As will be described further below, the library module 203 uses the folder path identification information as a foreign key so as to manage the content file information.
The folder table 204 is created and updated by the library module 203 and includes the folder paths of the content files stored in the storage unit 202 and the folder path identification information.
The folder path identification information is allocated according to the order defined in the folder table 204. For example, in a case where n folder paths and n pieces of the folder path identification information are included in the folder table 204, when it is desired to register a new folder path in the folder table 204, the new folder path identification information to be registered is allocated as n+1. When the folder path identification information “2” is deleted, the folder path identification information to be registered may be allocated as “2”. In addition, when pieces of the folder path identification information “2”, “3”, and “5” are deleted, the folder path identification information to be registered may be allocated as the highest ranked piece of information, that is, “2”. This folder path identification information may be allocated by the library module 203 based on the results from monitoring the folder path identification information existing in the folder table 204 by the library module 203.
The file table 205 is created and updated by the library module 203 and includes the additional content file information as well as the folder path identification information of the content file stored and the file name in the storage unit 202.
Referring to
The library module 203 creates the folder table 204 including the folder paths of the content files stored in the storage unit 202 and the folder path identification information with the structure shown in
In addition, the library module 203 creates the file table 205 including the file names of the content files and the folder path identification information with the structure shown in
When the content file is stored in the storage unit 202, the library module 203 can create the folder table 204 and the file table 205 based on the content file information collected by the library module 203 or the information input from the information input unit 201.
When the folder table 204 and the file table 205 are created in this way, the library module 203 manages the content file information by using the information included in the folder table 204 and the file table 205 (503). The library module 203 manages the content file information using the folder path identification information as a foreign key.
The library module 203 acquires the folder path identification information of the content files of which information is to be registered from the folder table 204 (operation 601). The information of the folder paths of the content files may be provided from the information input unit 201. For example, when the folder table 204 is as shown in
Then, the acquired folder path identification information and file names of the content files of which information is to be registered are recorded in the file table 205. Namely, when the folder path identification information acquired from the folder table 204 according to the above described example is “1” and the file name of the content file is “Dsc0001.jpg”, the folder path identification information and the file name are recorded in the file table 205 such as “the item of the identification information of the content file (ID) 1” as shown in
The library module 203 searches in the folder table 204 for the folder paths corresponding to the folder paths of the content files of which information is to be registered (operation 701). The information of the folder paths of the content files may be provided from the information input unit 201.
If the folder paths corresponding to the content file of which information is to be registered exist (operation 702), the library module 203 acquires the folder path identification information of the corresponding folder paths stored in the folder table 204 as the folder path identification information of the content files of which information is to be registered (operation 703).
However, when the corresponding folder paths are not found in the folder table 204 (operation 702), the library module 203 allocates the folder path identification information of the content files of which information is to be registered (operation 704). The allocating of the folder path identification information is executed as explained in reference to
The library module 203 then records the allocated folder path identification information and the folder paths of the content files of which information is to be registered in the folder table 204 (operation 705). Accordingly, the information included in the folder table 204 is updated.
After executing operation 703 or operation 705, the library module 203 records the folder path identification information and the file names of the content files of which information is to be registered in the file table 205. Accordingly, the information included in the file table 205 is updated.
The library module 203 compares the folder path of the content file of which information is to be registered with the previous folder path (operation 801). The folder path of the content file of which information is to be registered may be provided from the information input unit 201. The previous folder path may be the folder path used just before by the library module 203 for managing the content file information, and the folder path and the identification information of the corresponding folder path are temporarily held in the library module 203.
When the folder path of the content file of which information is to be registered is identical to the previous folder path, the library module 203 acquires the folder path identification information of the previous folder path as the folder path identification information of the content file of which information is to be registered (operation 802). Namely, when the folder path identification information of the previous folder path is “1”, the identification information of current folder path of the content file of which information is to be registered is set to “1”.
The library module 203 records the acquired folder path identification information and the file name of the content file in the file table 205 (operation 803). Accordingly, the information included in the file table 205 is updated.
On the other hand, when the folder path of the content file of which information is to be registered is not identical to the previous folder path, the library module 203 searches in the folder table 204 for the folder path corresponding to the folder path of the content file of which information is to be registered (operation 804), and a determination is made whether the corresponding folder path exists (operation 805).
When the corresponding folder path exists in the folder table 204, the library module 203 acquires the folder path identification information of the content file of which information is to be registered from the folder table 204 (operation 806), and the library module 203 executes operation 803, which is described above.
When the corresponding folder path does not exist in the folder table 204, the library module 203 allocates the folder path identification information of the content file of which information is to be registered as explained in
The library module 203 records the allocated folder path identification information and the folder path of the content file of which information is to be registered in the folder table 204 (operation 808). Accordingly, the information included in the folder table 204 is updated. Then, the library module 203 returns to operation 803.
The library module 203 acquires the folder path identification information of the content files of which information is to be searched from the folder table 204 (operation 901). The information of the folder paths of the content files may be provided from the information input unit 201.
The library module 203 searches for the content file information in the file table 205 by using the acquired folder path identification information and file names of the content files for which information is to be searched (operation 902). The file names of the content files may be provided from the information input unit 201.
When the desired content file information is searched in the file table 205, the library module 203 outputs the found content file information (operation 903). Accordingly, the searched content file information can be provided to a user.
The library module 203 acquires the folder path identification information where the content file information is to be searched for from the folder table 204 (operation 1001). A plurality of pieces of the folder path identification information may be acquired from the folder table 204. When the information of the folder paths where the content file information is to be searched for is one folder name, all the folder paths including the folder name are the folder paths corresponding to the folder paths to be searched for. For example, when the folder path to be searched is for “MyFolder” and the folder table is as shown in
When the folder path identification information is acquired from the folder table 204, the library module 203 searches for the content file information including the folder path identification information in the file table 205 based on the acquired folder path identification information (operation 1002). For example, when the acquired folder path identification information is “1” and the file table 205 is as shown in
Thus, when a plurality of pieces of folder path identification information are acquired as described in the above examples, all the pieces of the content file information including a plurality of pieces of the acquired folder path identification information are searched for in the file table 205. Namely, all the pieces of the content file information to which pieces of the folder path identification information “1” and “2” are allocated are searched for.
The library module 203 outputs the searched content file information (operation 1003). Accordingly, the searched content file information can be provided to a user.
The library module 203 deletes the folder paths including the folder name to be deleted from the folder table 204 (operation 1101). For example, when the folder name to be deleted is “MyFolder”, the folder paths of which pieces of the identification information are “1” and “2” are deleted from the folder table 204 shown in
The library module 203 acquires the identification information of the deleted folder paths while deleting the folder paths including the folder name to be deleted from the folder table 204 (operation 1102). The library module 203 acquires “1” and “2” as the identification information of the deleted folder paths in operation 1102, according to the above described example.
The library module 203 deletes the content file information including the identification information of the deleted folder paths from the file table 205 (operation 1103). As in the above described example, when the pieces of the folder path identification information “1” and “2” are acquired, the pieces of the content file information of which the pieces of the identification information are “1”, “2”, and “n” are deleted from the file table 205. The folder path identification information of the content files of which the pieces of the identification information are “1”, “2”, and “n” is “1” or “2”.
The library module 203 acquires the folder path identification information of the content file of which information is to be deleted from the folder table 204 (operation 1201). The information of the folder paths of the content file of which information is to be deleted may be provided from the information input unit 201.
The library module 203 searches for the content file information in the file table 205 by using the acquired folder path identification information and the file name of the content file of which information is to be deleted (operation 1202). The file name of the content file of which information is to be deleted may be provided from the information input unit 201.
The library module 203 deletes the searched content file information from the file table 205 (operation 1203).
The library module 203 compares the folder paths of the content file of which information is to be deleted with the previous folder path to determine whether the folder part of the content file of which information is to be deleted is the same as a previous folder path (operation 1301). The information of the folder paths of the content file of which information is to be deleted may be provided from the information input unit 201. The previous folder path is the folder path used just before by the library module 203 for managing the content file information, and this folder path and the identification information of the corresponding folder path are temporarily held in the library module 203.
When the folder path of the content file of which information is to be deleted is identical to the previous folder path, the library module 203 searches for the content file information from the file table 205 by using the identification information of the previous folder path and the file name of the content file of which information is to be deleted (operation 1302).
When the content file information is searched for in the file table, the library module 203 deletes the searched information of the content file from the file table 205 (operation 1303).
However, when the folder path of the content file of which information is to be deleted is not identical to the previous folder path, the library module 203 performs identical operations to operation 1201 and operation 1202, described above (operation 1304 and operation 1305), and operation 1303 is performed (also identical to operation 1203 discussed above).
The library module 203 searches in the folder table 204 for the folder paths including the name of the folder to be renamed (operation 1401). For example, when it is desired to rename the folder “MyFolder” to “MyContents”, the library module 203 searches in the folder table 204 for the folder paths including the folder name “MyFolder”. The name of the folder to be renamed may be provided from the information input unit 201. When the folder paths including the name of the folder to be renamed are found (operation 1402), the library module 203 renames the corresponding folder in the identified folder paths (operation 1403). For example, when the folder path “MyFolder/D1/” is encountered, the found folder path is renamed to “MyContents/D1/”. A determination is then made if additional folder paths exist in the folder table that still need to be searched (operation 1404). If additional folder paths exist, then operation passed back to operation 1401.
When the name of the folder to be renamed is not found (operation 1402), the operation of the library module 203 proceeds back to operation 1401 in order to evaluate the next folder path, and the library module 203 performs the above described operations 1401 and 1402 repeatedly. For example, when in operation 1403 the folder path identification information “1” is searched for, the folder paths not searched for are the folder paths corresponding to the folder path identification information “2 to n”.
Referring to
The library module 203 acquires the folder path identification information of the content file to be renamed from the folder table 204 (operation 1501). The information of the folder paths of the renamed content file may be provided from the information input unit 201.
The library module 203 searches in the file table 205 for the file name of the content file to be renamed based on the folder path identification information (operation 1502). Thereafter, the library module 203 renames the found file (operation 1503). Accordingly, the file table 205 is updated so as to include the renamed file name.
The present inventive concept can also be embodied as computer readable codes on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
As described above, according to exemplary embodiments of the present invention, it is possible to increase a processing speed of adding, deleting, renaming and searching for information of a content file by reducing the amount of the string comparison between the content file information pieces, by reducing the length of a file path and by reducing the duplicating usage of the file path, when the library module manages the content file information by managing a folder table based on a folder path of a content file and folder path identification information and a file table based on folder path identification information of a content file and a file name individually.
While the present invention has been particularly shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. The exemplary embodiments should be considered in a descriptive sense only and not for purposes of limitation. Therefore, the scope of the invention is defined not by the detailed description of the invention but by the appended claims, and all differences within the scope will be construed as being included in the present invention.
Number | Date | Country | Kind |
---|---|---|---|
10-2005-0104151 | Nov 2005 | KR | national |