JP2004005725A - File management device, file management method, recording medium, and file management system - Google Patents

File management device, file management method, recording medium, and file management system Download PDF

Info

Publication number
JP2004005725A
JP2004005725A JP2003277831A JP2003277831A JP2004005725A JP 2004005725 A JP2004005725 A JP 2004005725A JP 2003277831 A JP2003277831 A JP 2003277831A JP 2003277831 A JP2003277831 A JP 2003277831A JP 2004005725 A JP2004005725 A JP 2004005725A
Authority
JP
Japan
Prior art keywords
directory
file
group information
group
read
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.)
Granted
Application number
JP2003277831A
Other languages
Japanese (ja)
Other versions
JP4003709B2 (en
Inventor
Satoru Sasa
佐々 哲
Hiroaki Fuse
布施 博明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2003277831A priority Critical patent/JP4003709B2/en
Publication of JP2004005725A publication Critical patent/JP2004005725A/en
Application granted granted Critical
Publication of JP4003709B2 publication Critical patent/JP4003709B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To facilitate management for a directory and a file, and to remarkably reduce a burden for processing in the management. <P>SOLUTION: This device/system/method is provided with the files having a file number, a storage means for storing the directory having a directory entry comprising the file number and group information in the every file, and a management means for managing the file indicated by the file number of the directory entry of the stored one directory, or the directory, to be on a hierarchy subordinate to the one directory. The management means collects the respective files the group by the group to be displayed, based on the group information of the one directory read out from the storage means. <P>COPYRIGHT: (C)2004,JPO

Description

 本発明は、ディレクトリやファイルの階層構造によって各ファイルを管理するファイル管理装置、ファイル管理方法、記録媒体及びファイル管理システムに関する。 The present invention relates to a file management device, a file management method, a recording medium, and a file management system that manage each file according to a hierarchical structure of directories and files.

 従来より、画像や音声等のデータからなるファイルは、ディレクトリとファイルの階層構造によって管理されている。このような階層構造において、各ディレクトリ又は各ファイルは、自身のディレクトリ名又はファイル名を備え、更にその上位又は下位のディレクトリやファイルの名前の情報を保持する必要があった。したがって、通常のコンピュータは、外部の記憶装置に記憶されているファイルに名前が付けられていない場合は、ファイルに名前を付けてから各ファイルを管理するようになっている。
特開平4−335784号公報
2. Description of the Related Art Conventionally, a file including data such as images and sounds has been managed by a hierarchical structure of directories and files. In such a hierarchical structure, each directory or each file has its own directory name or file name, and it is necessary to hold information on the names of the upper and lower directories and files. Therefore, when a file stored in an external storage device is not given a name, a normal computer manages each file after giving a name to the file.
JP-A-4-335784

 しかし、画像や音楽等のファイルの中にはファイル名を付けなくても容易に取り扱うことができるものがあり、コンピュータが全てのファイルやディレクトリに対して自身の名前を所有するのを要求しその名前を用いて全てのファイル等を管理するのは、効率的な処理とはいえず、処理負担が大きくなることがある。また、上述のようなファイルの管理方法では、ディレクトリに各ファイルを管理するための情報が集中しているので、ディレクトリの情報を管理するための領域が大きくなり、さらに、ディレクトリが破壊された場合には上記階層構造を復活させることは不可能であった。 However, some files, such as images and music, can be easily handled without naming them, and the computer requires all files and directories to have their own Managing all files and the like using names is not an efficient process, and may increase the processing load. Further, in the file management method as described above, since information for managing each file is concentrated in the directory, an area for managing the information of the directory becomes large, and further, when the directory is destroyed. It was impossible to restore the above hierarchical structure.

 また、ディレクトリ内のファイルが多くなると、これらのファイルを用途や種別に応じてグループ分けしたいことがある。このとき、従来からの階層構造では、さらにディレクトリを設けるか又はグループ分けするファイルのファイル名を変えるなければならなかった。しかし、簡単なグループ分けをするときにわざわざディレクトリを設けるのは処理負担が大きい。また、ファイルのグループ化のために、各ファイルにそのグループに固有のファイル名を付けたとしても、再びファイル名を変えてしまうとグループ分けすることができなくなってしまう。 と Also, when the number of files in the directory increases, there are times when you want to group these files according to use or type. At this time, in the conventional hierarchical structure, it is necessary to further provide a directory or change the file name of the file to be grouped. However, providing a directory for simple grouping requires a large processing load. Further, even if each file is given a file name unique to the group for file grouping, if the file name is changed again, the group cannot be divided.

 また、従来のディレクトリやファイルは、例えばカメラで撮影された画像を示すような用途・種別の情報を備えていないため、アプリケーションフォーマットでどのように使われるか判断されてから管理されており、その処理負担が大きかった。 Also, conventional directories and files do not have use / type information indicating, for example, images taken by a camera, and are managed after determining how to use them in an application format. Processing load was heavy.

 本発明は、このような実情に鑑みて提案されたものであり、ディレクトリやファイルの管理を容易にし、かつ、これらを管理するときの処理負担を大きく削減することができるファイル管理装置、ファイル管理方法、記録媒体及びファイル管理システムを提供することを目的とする。 The present invention has been proposed in view of such a situation, and a file management apparatus and a file management apparatus which can easily manage directories and files and greatly reduce the processing load when managing them. It is an object to provide a method, a recording medium, and a file management system.

 本発明に係るファイル管理装置は、ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記憶する記憶手段と、記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理する管理手段とを備え、上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示する。 A file management device according to the present invention includes a storage unit that stores a file having a file number, a directory having a directory entry including a file number and group information for each file, and a directory entry of one stored directory. Management means for managing the file or directory indicated by the file number in a hierarchy below the one directory, the management means based on the group information of the one directory read from the storage means, Collect and display files in groups.

 本発明に係るファイル管理方法は、ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記憶し、記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理し、上記一のディレクトリのグループ情報を読み出し、読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示する。 The file management method according to the present invention stores a file having a file number and a directory having a directory entry made up of the file number and the group information for each file, and the file number of the stored directory entry of one directory is The file or directory indicated is managed so as to be in a hierarchy below the one directory, the group information of the one directory is read, and each file is collected for each group based on the read group information of the one directory. To display.

 本発明に係る記録媒体は、ファイル番号を有するファイルと、ファイル番号とファイル同士を区別して管理するためのグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録し、記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理され、上記一のディレクトリのグループ情報が読み出され、読み出された上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示させる。 The recording medium according to the present invention records a file having a file number, and a directory having a directory entry for each file, the directory entry including a file number and group information for managing the files by distinguishing each file. The file or directory indicated by the file number of the directory entry of the directory is managed so as to be in a hierarchy below the one directory, the group information of the one directory is read, and the read group of the one directory is read. Based on the information, the files are collected and displayed in groups.

 本発明に係るファイル管理システムは、ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録する記録媒体と、上記記憶手段から読み出されたファイルとディレクトリとを記憶する記憶手段と、一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理する管理手段とを有する管理部と備え、上記管理部の管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示する。 A file management system according to the present invention includes a recording medium for recording a file having a file number, a directory having a directory entry including a file number and group information for each file, and a file read from the storage unit. A management unit having storage means for storing a directory, and management means for managing a file or a directory indicated by a file number of a directory entry of one directory so as to be in a hierarchy below the one directory; The management unit of the unit collects and displays the files for each group based on the group information of the one directory read from the storage unit.

 本発明に係るファイル管理方法は、ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録媒体に記録し、上記記録媒体から上記ファイルと上記ディレクトリとを読み出し、読み出されたファイルとディレクトリとを記憶し、記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理し、上記一のディレクトリのグループ情報に基づいて、各ファイルまたはディレクトリをグループ毎に集めて表示する。 The file management method according to the present invention records a file having a file number, and a directory having a directory entry composed of a file number and group information for each file on a recording medium, and from the recording medium, the file, the directory, And stores the read file and directory, and manages the file or directory indicated by the file number of the directory entry of the stored one directory so that the file or directory is in a lower hierarchy than the one directory. Each file or directory is collected and displayed for each group based on the group information of the directory.

 本発明では、記録媒体に新たにディレクトリを設けることなく、各ファイルをグループ分けすることができる。したがって、新たにディレクトリを設けることによる管理手段の処理負担や記録媒体におけるデータ量の増加を回避しつつ、ディレクトリの機能に匹敵するような各ファイルのグループ分けを実行することができる。 According to the present invention, each file can be grouped without providing a new directory on the recording medium. Therefore, it is possible to execute the grouping of each file which is equivalent to the function of the directory, while avoiding the processing load of the management unit and the increase in the amount of data in the recording medium due to the provision of the new directory.

 以下、本発明の実施の形態について、図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

 本発明は、図1に示す構成のメモリカードシステム1に適用される。メモリカードシステム1は、ホストコンピュータ10とメモリカード20により構成される。 The present invention is applied to the memory card system 1 having the configuration shown in FIG. The memory card system 1 includes a host computer 10 and a memory card 20.

 上記ホストコンピュータ10は、具体的には図1に示すように、静止画像や音声等の様々なファイルや各ファイルをまとめて管理するディレクトリ等を記憶するハードディスク11と、ハードディスク11等からのファイル等を一旦記憶するRAM(Random Access Memory)12と、3本のラインを介してメモリカード20とのデータの送受信を行う第1のシリアルインターフェース(以下、「第1のシリアルI/F」という。)13と、各回路を制御するCPU(Central Processing Unit)14とを備え、例えばハードディスク11に記憶されている画像や音声等のファイルをディレクトリを用いた階層構造によって管理することができる。 Specifically, as shown in FIG. 1, the host computer 10 includes a hard disk 11 that stores various files such as still images and audio, a directory that collectively manages the files, a file from the hard disk 11 and the like. (Random Access Memory) 12 for temporarily storing data and a first serial interface (hereinafter referred to as a “first serial I / F”) for transmitting and receiving data to and from the memory card 20 via three lines. The system includes a CPU 13 and a CPU (Central Processing Unit) 14 that controls each circuit. For example, files such as images and sounds stored in the hard disk 11 can be managed in a hierarchical structure using directories.

 RAM12は、例えばハードディスク11に記憶されているファイルを一旦記憶し、必要に応じてこのファイルをバスを介して第1のシリアルI/F13に供給する。 The RAM 12 temporarily stores a file stored in the hard disk 11, for example, and supplies the file to the first serial I / F 13 via a bus as needed.

 第1のシリアルI/F13は、3本のラインを介して、メモリカード20にデータを送信したり、メモリカード20に記憶されているデータを受信する。具体的には、第1のシリアルI/F13は、第1のラインを介して、上記制御データやファイルの送信の際のシリアルクロックSCKを送信する。第1のシリアルI/F13は、第2のラインを介して、第1のラインでのファイル又は制御データ等のシリアルデータの切り換えに応じて、そのときの状態を示すチップセレクト信号CSを出力する。さらに、第1のシリアルI/F13は、第3のラインを介して、メモリカード20に書き込むためのファイルや制御データを送信したり、メモリカード20から読み出されたファイルを受信する。 (1) The first serial I / F 13 transmits data to the memory card 20 and receives data stored in the memory card 20 via three lines. Specifically, the first serial I / F 13 transmits, via the first line, the serial clock SCK for transmitting the control data and the file. The first serial I / F 13 outputs a chip select signal CS indicating a state at that time according to switching of serial data such as a file or control data on the first line via the second line. . Further, the first serial I / F 13 transmits a file to be written to the memory card 20 and control data, and receives a file read from the memory card 20 via the third line.

 CPU14は、RAM12やハードディスク11のファイルを読み出したり、RAM12等にファイルを書き込むことを制御したり、メモリカード20とファイル等の送受信の制御も行う。例えば、CPU14は、メモリカード20の図示しない誤消去防止スイッチのライトプロテクトがオンになっているかを判定するためのレジスタ命令を発行したり、メモリカード20に対してアドレスを指定して所定のファイルの書込み命令を発行する。 The CPU 14 reads a file from the RAM 12 or the hard disk 11, controls writing of a file to the RAM 12, or the like, and controls transmission and reception of a file and the like to and from the memory card 20. For example, the CPU 14 issues a register instruction for determining whether the write protection of an erroneous erasure prevention switch (not shown) of the memory card 20 is turned on, or specifies an address to the memory card 20 to specify a predetermined file. Issue a write instruction.

 ここで、メモリカード20は、図1に示すように、上記ホストコンピュータ10からのファイルや制御データをシリアルで送受信する第2のシリアルI/F21と、ファイルやディレクトリを記憶するフラッシュメモリ22と、フラッシュメモリ22に記憶されているファイル等の読出し又は書込みを制御するコントローラ23とを備える。 Here, as shown in FIG. 1, the memory card 20 includes a second serial I / F 21 that serially transmits and receives files and control data from the host computer 10, a flash memory 22 that stores files and directories, A controller 23 for controlling reading or writing of files and the like stored in the flash memory 22;

 上記フラッシュメモリ22は、例えばNAND型のものであり、図2に示すように、ホストコンピュータ10から送信されたファイルを、消去単位となるブロック(例えば8kバイト又は16kバイト)毎に分割して記憶する。各ブロック0,1,2,・・・,nは、ファイル等を512バイト記憶するデータエリアと16バイトの冗長エリアとによってなる1ページ(=512バイト+16バイト)が集合して構成される。上記冗長エリアには、当該ブロックのデータエリアにあるデータを管理するための分散管理情報が記憶されている。なお、これらの分散管理情報が集合すると集合管理情報(集合管理ファイル)が構成される。集合管理ファイルは、数ブロックで構成されて、全てのブロックのデータの記録状態を一括して管理するものであり、例えばフラッシュメモリ22内の各ブロックの分散管理情報の一部をまとめて管理するビットマップテーブルを備える。 The flash memory 22 is, for example, a NAND type. As shown in FIG. 2, a file transmitted from the host computer 10 is divided into blocks (for example, 8 kbytes or 16 kbytes) serving as an erasing unit and stored. I do. Each of the blocks 0, 1, 2,..., N is composed of one page (= 512 bytes + 16 bytes) formed by a data area for storing 512 bytes of files and the like and a 16-byte redundant area. The redundant area stores distribution management information for managing data in the data area of the block. When these pieces of distributed management information are collected, set management information (set management file) is configured. The collective management file is composed of several blocks and collectively manages the recording state of the data of all the blocks. For example, a part of the distributed management information of each block in the flash memory 22 is collectively managed. It has a bitmap table.

 ここで、ファイルは、画像や音声等に用いるユーザファイル形式のものと、システム管理のためのシステムファイル形式のものとがあり、全てに対して所定の論理アドレスが与えられて、フラッシュメモリ22の1以上のブロックのデータエリアにおいて記憶される。 Here, there are two types of files: a user file format used for images and sounds, and a system file format for system management. It is stored in the data area of one or more blocks.

 ユーザファイル形式のファイルは、図3に示すように、当該ファイルの属性情報である512バイトのヘッダ部と主情報であるデータ部によって構成される。ヘッダ部は、当該ファイルをメモリカード20内で管理するための情報である128バイトのOSヘッダと、通常のパーソナルコンピュータ等で取扱い可能な汎用的ものであり、必要不可欠な管理情報である240バイトのファイルヘッダと、144バイトのエントリエリアとからなる。また、データ部は、テーブルデータ領域と、4つのエントリデータとを有する。なお、上述の図3に示すデータ部では、4つまでのエントリデータが格納される。すなわち、ユーザファイル形式のファイルは、最大で4つのエントリデータから構成される。また、図3では、エントリデータとして、インデックス,画像データ,2つの補助データを例に挙げたが、特に限定されるものではなく、その他音声データ等であってもよい。 As shown in FIG. 3, the file in the user file format includes a 512-byte header part as attribute information of the file and a data part as main information. The header section has a 128-byte OS header that is information for managing the file in the memory card 20 and a general-purpose OS header that can be handled by a normal personal computer or the like, and has a 240-byte indispensable management information. And a 144-byte entry area. The data section has a table data area and four entry data. In the data section shown in FIG. 3, up to four entry data are stored. That is, a file in the user file format is configured from a maximum of four entry data. Further, in FIG. 3, the index data, the image data, and the two auxiliary data are taken as examples of the entry data, but the entry data is not particularly limited, and may be other audio data.

 上記OSヘッダは、具体的には図4に示すように、「ファイルID」(2バイト),「ファイルバージョン」(2バイト),「ファイルサイズ」(4バイト),「使用ブロック数」(2バイト),「リンク数」(1バイト),「日付」(8バイト),「メーカー/機種コード」(4バイト),「初期登録ディレクトリ番号」(2バイト),「アプリケーションカテゴリー」(1バイト),「ファイル名」(11バイト),「キーワード登録数」(1バイト),「キーワード文字コード」(1バイト),「キーワード文字列」(32バイト),「0リセットリザーブ」(4バイト),「個別データ」(32バイト)、さらに未使用領域「リザーブ」を有する。 Specifically, as shown in FIG. 4, the OS header includes "file ID" (2 bytes), "file version" (2 bytes), "file size" (4 bytes), and "number of used blocks" (2 bytes). Byte), "number of links" (1 byte), "date" (8 bytes), "manufacturer / model code" (4 bytes), "initial registration directory number" (2 bytes), "application category" (1 byte) , "File name" (11 bytes), "keyword registration number" (1 byte), "keyword character code" (1 byte), "keyword character string" (32 bytes), "0 reset reserve" (4 bytes), It has “individual data” (32 bytes) and an unused area “reserve”.

 「ファイルID」は、ファイルの種別(用途)を表すものであり、ファイルヘッダにも同様のものがある。「ファイルバージョン」は、いわゆるバージョンナンバーを示すものであり、ホストコンピュータ10やメモリカード20においてこのファイルを処理することができるかを判定するために用いられる。「ファイルサイズ」は、ヘッダ部及びデータ部からなる当該ファイルの全体の大きさをバイト数で示すものである。「使用ブロック数」は、フラッシュメモリ22で当該ファイルを使用しているブロック数を示すものである。「リンク数」は、当該ファイルを参照しているディレクトリ又はファイルの数を示すものである。なお、「リンク数」には、当該ファイルの属するディレクトリも含まれる。例えば、他のディレクトリから参照されていないファイルは、その属するディレクトリのみとリンクしているので、「リンク数」は1である。「日付」は、ファイルを作成した日付又は更新した日付を示すものである。「メーカー/種別コード」は、メモリカード20にファイルを書き込んだ機器のメーカー名及びその機種を示すものである。「初期登録ディレクトリ番号」は、最初に登録したディレクトリ番号を示すものであり、ファイルが別のディレクトリに移った場合でも更新されるものではない。「アプリケーションカテゴリー」は、このファイルが用いられるアプリケーションのカテゴリーを示すものである。「ファイル名」は、ホストコンピュータ10でファイルを管理するときに用いられるファイル名であり、メモリカード20内では特に使用されない。「キーワード登録数」は、登録されたキーワードの数を示すものである。「キーワード文字コード」は、キーワードの文字コードを示したものである。「キーワード文字列」は、キーワード,セパレータを決めて複数指定をすることもできるものである。「0リセットリザーブ」は、書換えの際に必ず0にしておくものである。「個別データ」は、ファイルID毎に管理するためのもので、例えばファイルIDによって決められる用途で用いられるデータであり、利用者が自由に用いることができる。 “File ID” indicates the type (use) of a file, and the file header has the same type. The “file version” indicates a so-called version number, and is used to determine whether the host computer 10 or the memory card 20 can process the file. “File size” indicates the total size of the file including the header part and the data part in bytes. The “number of used blocks” indicates the number of blocks using the file in the flash memory 22. The “number of links” indicates the number of directories or files referencing the file. The “number of links” includes the directory to which the file belongs. For example, a file that is not referenced from another directory is linked only to the directory to which it belongs, so the “number of links” is one. "Date" indicates the date when the file was created or the date when the file was updated. The “maker / type code” indicates the manufacturer name and the model of the device that wrote the file to the memory card 20. The “initial registration directory number” indicates the directory number registered first, and is not updated even when a file is moved to another directory. “Application category” indicates a category of an application in which this file is used. The “file name” is a file name used when managing files in the host computer 10, and is not particularly used in the memory card 20. The “keyword registration number” indicates the number of registered keywords. “Keyword character code” indicates the character code of the keyword. The "keyword character string" can specify a plurality of keywords by determining a keyword and a separator. "0 reset reserve" is always set to 0 at the time of rewriting. The “individual data” is used for management for each file ID, and is data used for a purpose determined by the file ID, for example, and can be used freely by the user.

 上記ファイルヘッダは、具体的には図5に示すように、「規格識別データ」(8バイト),「ファイル規格識別データ」(8バイト),「ファイルID」(2バイト),「ファイルバージョン」(2バイト),「アプリケーション作成日付」(8バイト),「アプリケーション更新日付」(8バイト),「作成メーカー/機種コード」(4バイト),「更新メーカー/機種コード」(4バイト),「0リセットリザーブ」(16バイト),「データエントリ数」(1バイト),「テーブル数」(1バイト),「文字コード」(1バイト),「タイトル文字列」(128バイト)、さらに未使用領域「リザーブ」を有する。 Specifically, as shown in FIG. 5, the file header includes "standard identification data" (8 bytes), "file standard identification data" (8 bytes), "file ID" (2 bytes), and "file version". (2 bytes), “Application creation date” (8 bytes), “Application update date” (8 bytes), “Creation maker / model code” (4 bytes), “Update maker / model code” (4 bytes), “ “0 reset reserve” (16 bytes), “number of data entries” (1 byte), “number of tables” (1 byte), “character code” (1 byte), “title character string” (128 bytes), and unused It has an area "reserve".

 「規格識別データ」は、当該フラッシュメモリ22が所定の規格に沿ってファイルを記憶していることを示すものである。「ファイル規格識別データ」は、当該ファイルが上記所定の規格に沿って作成されたことを示すものである。「ファイルID」は、ファイルの種別を表すものであり、OSヘッダにも同様のものがある。「ファイルバージョン」は、バージョンナンバーを示すものである。「アプリケーション作成日付」は、アプリケーションを作成した日付を示すものであり、「アプリケーション更新日付」は、アプリケーションを更新した日付を示すものである。「作成メーカー/種別コード」は、ファイルを作成したメーカー及びその機種名を示すものであり、「更新メーカー/種別コード」は、そのファイルを更新したメーカー及びその機種名を示すものである。「データエントリ数」は、後述のエントリデータの数を示すものである。「テーブル数」は、テーブルデータ領域のデータ数を示すものである。「文字コード」は、入力文字を所定のコード番号で示したものである。「タイトル文字列」は、タイトル文字を示したものである。 規格 “Standard identification data” indicates that the flash memory 22 stores a file according to a predetermined standard. “File standard identification data” indicates that the file has been created in accordance with the predetermined standard. The “file ID” indicates the type of a file, and the OS header has the same type. “File version” indicates a version number. The “application creation date” indicates the date on which the application was created, and the “application update date” indicates the date on which the application was updated. The “creating maker / type code” indicates the maker that created the file and its model name, and the “updated maker / type code” indicates the maker that updated the file and its model name. The “number of data entries” indicates the number of entry data described later. The “number of tables” indicates the number of data in the table data area. “Character code” indicates an input character by a predetermined code number. "Title character string" indicates a title character.

 エントリエリアは、データ部の4つのエントリデータを管理するためのデータ(以下、「エントリ」という。)がそれぞれ記憶されている。 (4) The entry area stores data (hereinafter, referred to as “entries”) for managing four entry data in the data section.

 上記エントリエリア内の各エントリは、4つのエントリデータに対応して設けられ、図5に示すように、4つのエントリデータ毎に、「開始アドレス」(4バイト),「データサイズ」(4バイト),「データ種別ID」(1バイト),「リザーブ」(1バイト),「個別データ」(26バイト)がある。例えば、エントリ1の「開始アドレス」は図3に示す「エントリデータ1 インデックス」の先頭論理アドレスを示し、エントリ2の「開始アドレス」は「エントリデータ2画像データ」の先頭論理アドレスを示す。 Each entry in the entry area is provided corresponding to four entry data. As shown in FIG. 5, for each of the four entry data, a “start address” (4 bytes) and a “data size” (4 bytes) ), “Data type ID” (1 byte), “reserved” (1 byte), and “individual data” (26 bytes). For example, the “start address” of entry 1 indicates the leading logical address of “entry data 1 index” shown in FIG. 3, and the “start address” of entry 2 indicates the leading logical address of “entry data 2 image data”.

 一方、システムファイル形式のファイルとしては、例えばディレクトリファイルが該当し、ユーザファイル形式のものと比べて、ヘッダ部の構成が異なっている。 On the other hand, as a file in the system file format, for example, a directory file corresponds, and the configuration of the header portion is different from that in the user file format.

 ここで、1つのディレクトリは、1つのファイル、すなわち1つのディレクトリファイルによって構成され、最大8kバイトの大きさとする。ディレクトリファイルは、ヘッダ部とデータ部とから構成され、主にヘッダ部のディレクトリインフォメーションとデータ部のディレクトリエントリリストとによって各ファイルを管理する。 Here, one directory is composed of one file, that is, one directory file, and has a maximum size of 8 kbytes. The directory file is composed of a header part and a data part, and each file is managed mainly by directory information of the header part and a directory entry list of the data part.

 上記ディレクトリファイルのヘッダ部は、図6に示すように、「OSヘッダ」(128バイト),「ファイルヘッダ」(240バイト),「システムエントリエリア」(48バイト),「ディレクトリインフォメーション」(96バイト)を有する。なお、「OSヘッダ」と「ファイルヘッダ」は、上述したユーザファイル形式のものと同様である。 As shown in FIG. 6, the header part of the directory file includes “OS header” (128 bytes), “file header” (240 bytes), “system entry area” (48 bytes), and “directory information” (96 bytes). ). The “OS header” and the “file header” are the same as those in the user file format described above.

 「システムエントリエリア」は、ユーザファイル形式のものとほとんど同じであるが、各エントリに個別データが設けられていない。具体的には図7に示すように、各エントリ毎に、「開始アドレス」(4バイト),「データサイズ」(4バイト),「データ種別ID」(1バイト),「リザーブ」(3バイト)がある。例えば一のエントリの「開始アドレス」は後述のグループインフォメーションの先頭論理アドレスを示し、他のエントリの「開始アドレス」は後述のディレクトリエントリの先頭論理アドレスを示す。 The “system entry area” is almost the same as the user file format, but no individual data is provided for each entry. Specifically, as shown in FIG. 7, for each entry, “start address” (4 bytes), “data size” (4 bytes), “data type ID” (1 byte), “reserve” (3 bytes) ). For example, the “start address” of one entry indicates the head logical address of the group information described later, and the “start address” of the other entry indicates the head logical address of the directory entry described later.

 「ディレクトリインフォメーション」は、ディレクトリの情報を管理するものであり、図8に示すように、「ディレクトリID」(2バイト),「対象ファイルID」(1バイト),「グループ数」(1バイト),「親ディレクトリ」(2バイト),「ディレクトリ数」(2バイト),「ファイル数(全ファイル)」(2バイト),「対象ファイル数」(2バイト),「アクセスポイント」(2バイト),「ディレクトリエントリ数」(2バイト),「システム用ディレクトリエントリ数」(2バイト),「使用システムディレクトリエントリ数」(2バイト),「確保ブロック数」(2バイト),「使用ブロック数」(2バイト),さらに未使用領域「リザーブ」(72バイト)を有する。 “Directory information” manages directory information. As shown in FIG. 8, “directory ID” (2 bytes), “target file ID” (1 byte), “number of groups” (1 byte) , "Parent directory" (2 bytes), "number of directories" (2 bytes), "number of files (all files)" (2 bytes), "number of target files" (2 bytes), "access point" (2 bytes) , "Number of directory entries" (2 bytes), "Number of directory entries for system" (2 bytes), "Number of used system directory entries" (2 bytes), "Number of reserved blocks" (2 bytes), "Number of used blocks" (2 bytes) and an unused area “reserve” (72 bytes).

 「ディレクトリID」はディレクトリの種別を表し、「対象ファイルID」は対象とするファイルIDを示すものである。すなわち、これらは、ディレクトリ自身又はファイル自身の名前を示すものではなく、例えば画像やオーディオ等の用途を示すものである。なお、「対象ファイルID」は、当該ディレクトリの対象となるファイルの「ファイルID」の上位1バイトが記述される。これにより、「対象フラグ」で識別するためのファイルIDを指定することができる。「対象ファイルID」だけを変えれば、当該ディレクトリのファイルの種別も容易に変えることができる。「グループ数」は、ディレクトリ内の複数のファイルをグループ分けする場合に、登録されたグループの数である。「親ディレクトリ」は、親ディレクトリ、すなわち1つ上の階層のディレクトリ番号を示すものである。「ディレクトリ数」は含まれるディレクトリの総数を示し、「ファイル数(全ファイル)」は当該ディレクトリに含まれる全ファイルの数を示す。「対象ファイル数」は、そのディレクトリ内で取り扱うことができるファイルの数、すなわち含まれる対象ファイル数を示す。「アクセスポイント」は、当該ディレクトリにアクセスを開始したときの、最初にアクセスするディレクトリエントリを示すものである。「ディレクトリエントリ数」は、後述のユーザエリアのディレクトリエントリ数を示す。「システム用ディレクトリエントリ数」は、システム用ディレクトリエリアのディレクトリエントリの数を示す。具体的には図9に示すように、各ディレクトリファイルには、システム用ディレクトリエリアと、ユーザエリアとが設けられている。なお、これらのエリアは、ディレクトリ毎に設定することができる。システム用ディレクトリエリアは、管理ファイル等のそのシステムに必要な特別ファイルを取り扱うためのエリアであり、ディレクトリエントリによってそのエリアは固定される。すなわち、ディレクトリエントリの最初から所定番目まではシステム用ディレクトリエリアに対応し、その他のディレクトリエントリはユーザエリアに対応している。そこで、「システム用ディレクトリエントリ数」は、かかるシステム用のディレクトリエントリの数を示すものである。なお、ルートディレクトリは、256のシステム用ディレクトリを設けている。一方、ユーザエリアでは、各ディレクトリエントリは当該エリアの開始位置から隙間なく並べられる。「使用システムディレクトリエントリ数」は、システム用ディレクトリエリアで実際に使用されているディレクトリエントリ数を示す。「確保ブロック数」はアプリケーションで確保したいフラッシュメモリ22のブロック数を示し、「使用ブロック数」はアプリケーションで使用したブロック数を示す。 “Directory ID” indicates the type of directory, and “Target file ID” indicates the target file ID. That is, these do not indicate the names of the directories themselves or the files themselves, but indicate applications such as images and audio. The “target file ID” describes the upper one byte of the “file ID” of the target file of the directory. As a result, a file ID for identification by the “target flag” can be specified. If only the “target file ID” is changed, the file type of the directory can be easily changed. The “number of groups” is the number of groups registered when a plurality of files in the directory are grouped. The “parent directory” indicates the parent directory, that is, the directory number of the next higher hierarchy. “Number of directories” indicates the total number of directories included, and “number of files (all files)” indicates the number of all files included in the directory. “Number of target files” indicates the number of files that can be handled in the directory, that is, the number of target files included. “Access point” indicates a directory entry to be accessed first when access to the directory is started. The “number of directory entries” indicates the number of directory entries in the user area described later. The “number of system directory entries” indicates the number of directory entries in the system directory area. Specifically, as shown in FIG. 9, each directory file is provided with a system directory area and a user area. Note that these areas can be set for each directory. The system directory area is an area for handling a special file required for the system such as a management file, and the area is fixed by a directory entry. That is, the first to the predetermined number of directory entries correspond to the system directory area, and the other directory entries correspond to the user area. Therefore, “the number of directory entries for the system” indicates the number of directory entries for the system. The root directory has 256 system directories. On the other hand, in the user area, each directory entry is arranged without a gap from the start position of the area. “Number of used system directory entries” indicates the number of directory entries actually used in the system directory area. The “number of reserved blocks” indicates the number of blocks of the flash memory 22 that the application wants to reserve, and the “number of used blocks” indicates the number of blocks used by the application.

 また、上記ディレクトリファイルのデータ部は、上述の図6に示すように、エントリデータ1として「グループインフォメーション」(可変長),エントリデータ2として「ディレクトリエントリリスト」(可変長)を有する。 The data section of the directory file has “group information” (variable length) as entry data 1 and “directory entry list” (variable length) as entry data 2 as shown in FIG.

 「グループインフォメーション」は、図10に示すように、「グループ番号」(1バイト),「グループインフォメーションサイズ」(1バイト),「ディレクトリID」(2バイト),「0リセットリザーブ」(1バイト),「リザーブ」(3バイト),「日付」(8バイト),「個別データ」(8バイト),「タイトル」(可変長)とを有する。 As shown in FIG. 10, "group information" includes "group number" (1 byte), "group information size" (1 byte), "directory ID" (2 bytes), and "0 reset reserve" (1 byte). , “Reserve” (3 bytes), “date” (8 bytes), “individual data” (8 bytes), and “title” (variable length).

 「グループインフォメーション」は、ディレクトリ内で所望のファイルのグループ分けを行うための情報であり、詳しくは後述するが、実質的にはディレクトリの下の階層に疑似ディレクトリを設けるものである。「グループインフォメーションサイズ」は、グループインフォメーションの大きさを示すものであり、固定長24バイト+「タイトル」の任意バイト数の大きさになる。「ディレクトリID」はディレクトリ種別毎に付けられるIDであり、「0リセットリザーブ」は修正する場合は必ず0に設定するものである。「リザーブ」は当該ファイル作成時に0に設定するものである。「日付」は当該ファイルの作成日付を示し、これは使用者により変更可能である。「個別データ」は特に定められたものでなく、「タイトル」はディレクトリファイルのタイトルを示すものである。 "Group information" is information for grouping desired files in a directory. As will be described later in detail, a pseudo directory is provided substantially in a hierarchy below the directory. The “group information size” indicates the size of the group information, and has a fixed length of 24 bytes plus an arbitrary number of bytes of “title”. “Directory ID” is an ID assigned to each directory type, and “0 reset reserve” is always set to 0 when it is corrected. “Reserved” is set to 0 when the file is created. "Date" indicates the creation date of the file, which can be changed by the user. "Individual data" is not particularly defined, and "Title" indicates the title of the directory file.

 「ディレクトリエントリリスト」は、ディレクトリに属する要素を示すものであり、図11に示すように、ディレクトリエントリが複数集合して構成される。なお、1つのディレクトリエントリは4バイトである。ディレクトリエントリは、「ファイル番号」(2バイト),「属性情報」(1バイト),「グループ番号」(1バイト)で構成される。 The “directory entry list” indicates the elements belonging to the directory, and as shown in FIG. 11, is constituted by a plurality of directory entries. One directory entry is 4 bytes. The directory entry is composed of “file number” (2 bytes), “attribute information” (1 byte), and “group number” (1 byte).

 「ファイル番号」は、図12に示すように、2バイト中の最初のビットには「0」があり、残りの15ビットにおいてファイル又はディレクトリの先頭論理アドレスが示されている。なお、「0xffff」が示されている時は、未使用を意味する。 As shown in FIG. 12, the "file number" has "0" in the first bit of 2 bytes, and the remaining 15 bits indicate the head logical address of the file or directory. When “0xffff” is indicated, it means that it is not used.

 「属性情報」は、図13に示すように、「ディレクトリ/ファイル」(1ビット),「対象フラグ」(1ビット),「マーク1」(1ビット),「マーク2」(1ビット),「連続記録」(2ビット),「リザーブ」(2ビット)の情報を有する。「ディレクトリ/ファイル」は、1のときは当該ディレクトリの下にさらにディレクトリがあることを示し、0のときはファイルがあることを示す。「対象フラグ」は、1のときは上述のディレクトリインフォメーションで指定した対象ファイルIDのファイルであることを示し、0のときはそれ以外のファイルであることを示す。例えば、当該ファイルが画像であるか、又は画像以外のものであるか等を判定する場合に用いられるのものである。「マーク1」は、1のときはマーク1の指定があることを示し、0のときはかかる指定がないことを示す。「マーク2」については、「マーク1」と同様である。なお、「マーク1」及び「マーク2」は、利用者が指定できるマーキングフラグである。「連続記録」は、連写・簡易動画等の何かしらの連続した集合を示すときに利用される。なお、この連続記録は、ディレクトリエントリが隣合っていること、すなわちファイルが連続していることが必要である。具体的には、「00」のときは通常のファイル,「11」のときは連続ファイルの先頭,「10」のときは連続指定されたファイルであることを示す。例えば図14において、各2ビットずつの数字は各ディレクトリエントリの示すファイルの「連続記録」の値を示す。例えばファイル2〜ファイル5、ファイル6〜ファイル9は連続記録されている。なお、連続記録としてまとめられた各ファイルは、親ディレクトリのディレクトリエントリが連続していて、同じ「グループ番号」であることを要する。そして、各ファイルに2ビットの情報を持たすことによって、ディレクトリ内の一群のファイルを連続記録されているものとして識別することができる。なお、連続記録されているファイルの1つが削除されたり、新たなファイルが挿入されたときの説明については後に詳述する。 As shown in FIG. 13, the “attribute information” includes “directory / file” (1 bit), “target flag” (1 bit), “mark 1” (1 bit), “mark 2” (1 bit), It has information of “continuous recording” (2 bits) and “reserve” (2 bits). “Directory / file” indicates that there is a further directory below the directory when it is 1, and that there is a file when it is 0. When the "target flag" is 1, it indicates that the file has the target file ID specified by the directory information described above, and when it is 0, it indicates that the file is another file. For example, the file is used to determine whether the file is an image or a file other than an image. "Mark 1" indicates that mark 1 has been designated when it is 1, and that there is no such designation when it is 0. “Mark 2” is the same as “mark 1”. “Mark 1” and “Mark 2” are marking flags that can be specified by the user. “Continuous recording” is used to indicate any continuous set such as continuous shooting and simple moving images. This continuous recording requires that the directory entries be adjacent, that is, that the files be continuous. Specifically, "00" indicates a normal file, "11" indicates the head of a continuous file, and "10" indicates a continuously specified file. For example, in FIG. 14, each 2-bit number indicates the value of “continuous recording” of the file indicated by each directory entry. For example, files 2 to 5, and files 6 to 9 are continuously recorded. Note that the files grouped as a continuous record need to have consecutive directory entries of the parent directory and have the same “group number”. By giving each file two bits of information, a group of files in the directory can be identified as being continuously recorded. It should be noted that a case where one of the continuously recorded files is deleted or a new file is inserted will be described later in detail.

 「グループ番号」は、図15に示すように、8ビットで示され、1階層の疑似ディレクトリを示すグループ番号である。これにより、同じディレクトリ内で同じグループ番号を有するファイルは、1つのグループとして取り扱われる。なお、グループ番号0のファイルは、何もグループ分けされていないものであり、ここでは上記ディレクトリの直下のものとして取り扱う。 As shown in FIG. 15, the "group number" is a group number represented by 8 bits and indicating a one-level pseudo directory. Thus, files having the same group number in the same directory are treated as one group. It should be noted that the file having the group number 0 is not classified into any group, and is handled as a file immediately below the directory.

 ここで、同一のディレクトリ内に、ファイル1〜ファイル9の9つのファイルが存在していたとする。さらに、ファイル1,5,7はグループ1に属し、ファイル2,4はグループ2に属し、ファイル3,6はグループ3に属し、ファイル8,9はグループ0に属するものとする。 Here, it is assumed that nine files, file 1 to file 9, exist in the same directory. Further, files 1, 5, and 7 belong to group 1, files 2 and 4 belong to group 2, files 3 and 6 belong to group 3, and files 8 and 9 belong to group 0.

 このとき、グループ1〜グループ3は、図16に示すように、上記ディレクトリの下の階層に位置し、疑似的にディレクトリの役割を果たす。また、グループ0に属するファイル8,9は、上記ディレクトリの直下のものとして取り扱われる。 At this time, as shown in FIG. 16, the group 1 to the group 3 are located at a lower level of the directory and simulate the role of the directory. The files 8 and 9 belonging to the group 0 are handled as those immediately below the directory.

 すなわち、1エントリにつき1バイトだけの「グループ番号」を設けることによって、親ディレクトリの下にさらにディレクトリを設けたようなグループ機能を発揮することができる。また、ディレクトリファイルにはグループインフォメーションを設けてもよいので、各グループに名前を付けることも可能であり、グループ機能は通常のディレクトリに匹敵する機能を有する。 That is, by providing a "group number" of only one byte per entry, a group function as if a directory was further provided under the parent directory can be exhibited. In addition, since directory information may be provided with group information, it is possible to name each group, and the group function has a function comparable to a normal directory.

 なお、例えば図17に示すように、各グループを、疑似ディレクトリのように取り扱わなくてもよく、単にグループ関係のあるファイルを示すものとして取り扱ってもよい。 Note that, as shown in FIG. 17, for example, each group does not need to be handled like a pseudo directory, but may be handled simply as indicating files having a group relationship.

 また、図16及び図17に示すようなグループ分け機能は、グループを取り扱うことができるホストコンピュータと取り扱うことができないホストコンピュータとの間でも互換性を備えている。すなわち、グループ分け機能を有するホストコンピュータ(以下、「ホストコンピュータ10A」という。)に記憶されているファイルやディレクトリを、グループ分け機能のないホストコンピュータ(以下、「ホストコンピュータ10B」という。)に送信しても何等問題が生じない。かかる互換性について、用途がカメラである「カメラディレクトリ」の場合を挙げて以下に説明する。なお、ホストコンピュータ10Aは、図11に示すディレクトリエントリリストの各ディレクトリエントリを並び変える機能を有するものとその機能を有しないものとがあり、それぞれについて説明する。 The grouping function as shown in FIGS. 16 and 17 is compatible between a host computer that can handle groups and a host computer that cannot handle groups. That is, files and directories stored in a host computer having a grouping function (hereinafter, referred to as “host computer 10A”) are transmitted to a host computer having no grouping function (hereinafter, referred to as “host computer 10B”). Even if it does not cause any problems. Such compatibility will be described below with reference to a case where the application is a camera directory. Note that the host computer 10A has a function of rearranging each directory entry in the directory entry list shown in FIG. 11 and a function not having the function, and each will be described.

 例えば図18(A)に示すように、カメラディレクトリにおいて、ファイル1〜ファイル9の9つのファイルがあり、各ファイルはグループ0〜グループ3に分類されているものとする。ファイル1,5,7は家族の写真としてグループ1に分類され、ファイル2,4は趣味の写真としてグループ2に分類され、ファイル3,6は会社関係としてグループ3に分類され、ファイル8,9は未分類としてグループ0に分類されている。なお、グループ0は、カメラディレクトリ直下のものとして取り扱われる。このとき、上述の図11に示すディレクトリエントリリストでは、ファイル1,ファイル2,ファイル3・・・の順に各ディレクトリエントリが配列されている。すなわち、上記ディレクトリエントリリストでは、図18(A)に示す順番で、各ファイルのディレクトリエントリが配列されている。 For example, as shown in FIG. 18A, it is assumed that there are nine files, file 1 to file 9, in the camera directory, and the files are classified into groups 0 to 3. Files 1, 5, and 7 are classified into group 1 as family photos, files 2 and 4 are classified into group 2 as hobby photos, files 3 and 6 are classified into group 3 as company relationships, and files 8, 9 Are classified into group 0 as unclassified. Note that group 0 is handled as that immediately below the camera directory. At this time, in the directory entry list shown in FIG. 11 described above, the directory entries are arranged in the order of file 1, file 2, file 3, and so on. That is, in the directory entry list, the directory entries of each file are arranged in the order shown in FIG.

 ここで、ホストコンピュータ10Aにおいて、CPU14は、RAM12に格納されている上記カメラディレクトリ用のディレクトリファイルに対して、各ディレクトリエントリを図18(B)に示すように並び変えることができる。すなわち、CPU14は、ディレクトリエントリ内で、同じグループが連続して並ぶようにディレクトリエントリを並べ変える。これにより、ファイル1〜ファイル9は、図19に示すように、家族の写真,趣味の写真等のグループ毎にグループ分けされて並べられる。 Here, in the host computer 10A, the CPU 14 can rearrange the directory entries of the camera directory file stored in the RAM 12 as shown in FIG. 18B. That is, the CPU 14 rearranges the directory entries so that the same group is continuously arranged in the directory entries. As a result, as shown in FIG. 19, the files 1 to 9 are grouped and arranged in groups such as family photos and hobby photos.

 そして、ホストコンピュータ10Aが、上記カメラディレクトリのディレクトリファイル及びファイル1〜ファイル9の各ファイルをホストコンピュータ10Bに送信すると、ホストコンピュータ10Bは、図20に示すように、カメラディレクトリの下の階層に各ファイルを配列する。具体的には、ホストコンピュータ10Bは、カメラディレクトリ用のディレクトリファイルにおけるディレクトリエントリの並びに従ってファイルを並べるので、ホストコンピュータ10Aにおけるファイルの並び順と同じ順で各ファイルを並べることができる。したがって、ホストコンピュータ10Bにおいても、グループ分けされて各ファイルが並べられる。 Then, when the host computer 10A transmits the directory file of the camera directory and each file of the file 1 to the file 9 to the host computer 10B, the host computer 10B, as shown in FIG. Arrange the files. Specifically, since the host computer 10B arranges the files according to the order of the directory entries in the directory file for the camera directory, the files can be arranged in the same order as the order of the files in the host computer 10A. Therefore, also in the host computer 10B, the files are grouped and arranged.

 このように、ホストコンピュータ10Aがグループ分け機能を備え、かつ、グループ毎にディレクトリエントリリストを並び変える機能を有する場合は、グループ分け機能を備えていないホストコンピュータ10Bもグループ分けをして各ファイルを並べることができる。 As described above, when the host computer 10A has the grouping function and has the function of rearranging the directory entry list for each group, the host computer 10B without the grouping function also performs the grouping and stores each file. Can be lined up.

 一方、グループ毎にディレクトリエントリを並び変える機能を有しないホストコンピュータ10Aにおいても、図19に示すように、カメラディレクトリの各ファイルをグループ分けすることができる。 On the other hand, even in the host computer 10A having no function of rearranging directory entries for each group, as shown in FIG. 19, each file in the camera directory can be grouped.

 しかし、ホストコンピュータ10Aが、カメラディレクトリ用のディレクトリファイル及びファイル1〜ファイル9をホストコンピュータ10Bに送信すると、ホストコンピュータ10Bは、図21に示すように、そのまま各ファイルを並べる。すなわち、ホストコンピュータ10Bは、カメラディレクトリ用のディレクトリファイルにおけるディレクトリエントリの並びに従ってファイルを並べ、ファイル1,2,3・・・の順に各ファイルを並べている。 However, when the host computer 10A transmits the directory file for the camera directory and the files 1 to 9 to the host computer 10B, the host computer 10B arranges the files as they are as shown in FIG. That is, the host computer 10B arranges the files according to the arrangement of the directory entries in the directory file for the camera directory, and arranges the files in the order of files 1, 2, 3,....

 以上のように構成されるメモリカードシステム1において、ホストコンピュータ10のCPU14は、メモリカード20のフラッシュメモリ22から論理アドレス0のルートディレクトリのディレクトリファイル(以下、「ルートディレクトリファイル」という。)、その他のディレクトリファイル、さらに、必要なファイルのヘッダ部を読み出して、各ファイルを管理することができる。具体的には、立上げ開始すると、CPU14は、図22に示すステップS1の処理を開始する。 In the memory card system 1 configured as described above, the CPU 14 of the host computer 10 stores the directory file of the root directory of the logical address 0 (hereinafter, referred to as “root directory file”) from the flash memory 22 of the memory card 20 and others. By reading the directory file and the header of the necessary file, each file can be managed. Specifically, when the start-up is started, the CPU 14 starts the process of step S1 shown in FIG.

 ステップS1において、CPU14は、論理アドレス0のファイルを読み出すことを指示するコマンドを、第1のシリアルI/F13を介して、メモリカード20に送信する。メモリカード20では、コントローラ23は、上記コマンドに従ってフラッシュメモリ22から論理アドレス0のファイルを読み出し、第2のシリアルI/F21を介して、ホストコンピュータ10に送信する。CPU14は、第1のシリアルI/F13で受信したファイルをRAM12に格納し、これがルートディレクトリファイルであるか確認して、ステップS2に進む。 In step S <b> 1, the CPU 14 sends a command for reading the file at the logical address 0 to the memory card 20 via the first serial I / F 13. In the memory card 20, the controller 23 reads the file of the logical address 0 from the flash memory 22 according to the above command, and transmits the file to the host computer 10 via the second serial I / F 21. The CPU 14 stores the file received by the first serial I / F 13 in the RAM 12, checks whether this is a root directory file, and proceeds to step S2.

 ステップS2において、ルートディレクトリファイルがフラッシュメモリ22に存在しているかを判定し、存在しているときはステップS3に進み、存在していないときはステップS7に進む。 In step S2, it is determined whether the root directory file exists in the flash memory 22. If the root directory file exists, the process proceeds to step S3. If not, the process proceeds to step S7.

 ステップS3において、自分のアプリケーションディレクトリをチェックして、ステップS4に進む。例えば、ホストコンピュータ10が図示しない撮像部を備えるカメラ機器である場合には、ルートディレクトリの所定の位置に「カメラ」のディレクトリが存在しているかをチェックする。存在しているときは、このメモリカード20はカメラ機器で用いられるものであることが分かり、ステップS4及び後述のステップS5の処理を行う。すなわち、ルートディレクトリには、アプリケーションのカテゴリ毎に決められたディレクトリが設けられていて、例えばカメラの場合は「カメラ」というディレクトリが所定の位置に設けられている。 に お い て In step S3, the user checks his / her own application directory and proceeds to step S4. For example, if the host computer 10 is a camera device having an image pickup unit (not shown), it is checked whether a directory of “camera” exists at a predetermined position of the root directory. When the memory card 20 is present, it is determined that the memory card 20 is used in the camera device, and the processing of step S4 and step S5 described later is performed. That is, a directory determined for each application category is provided in the root directory. For example, in the case of a camera, a directory called “camera” is provided at a predetermined position.

 ステップS4において、自分のアプリケーションディレクトリ、例えば「カメラ」ディレクトリが存在するかを判定し、存在するときはステップS5に進み、存在しないときはステップS9に進む。 In step S4, it is determined whether or not an application directory of itself, for example, a "camera" directory exists. If the application directory exists, the process proceeds to step S5; otherwise, the process proceeds to step S9.

 ステップS5において、上記アプリケーションディレクトリの内容を読み出して、ステップS6に進む。 In step S5, the contents of the application directory are read, and the flow advances to step S6.

 ステップS6において、上記アプリケーションディレクトリのディレクトリファイルのディレクトリエントリを調べて、アルバム画像一覧や曲目一覧等のアプリケーションに必要なファイルとアクセスして、アプリケーション処理を開始する。 In step S6, the directory entry of the directory file in the application directory is checked to access files necessary for the application such as an album image list and a song list, and application processing is started.

 一方、ステップS2でルートディレクトリファイルが存在しないと判定したときのステップS7において、ルートディレクトリファイルを作成するか判定し、作成するときはステップS8に進み、作成しないときは立ち上げを中止する。ここで、ルートディレクトリを作成しない場合としては、例えばメモリカード20がライトプロテクトされている場合が該当する。 On the other hand, in step S7 when it is determined in step S2 that the root directory file does not exist, it is determined whether to create a root directory file. If so, the process proceeds to step S8. If not, the startup is stopped. Here, the case where the root directory is not created corresponds to, for example, the case where the memory card 20 is write-protected.

 ステップS8において、論理アドレス0のルートディレクトリファイルを作成して、ステップS9に進む。 In step S8, a root directory file having a logical address 0 is created, and the flow advances to step S9.

 ステップS9において、自分のアプリケーションディレクトリを作成するかを判定し、作成するときはステップS10に進み、作成しないときはかかる処理を中止する。すなわち、「カメラ」ディレクトリがないときは、後述のステップS10の処理のように「カメラ」ディレクトリを作ったり、又は、処理を一旦中止して利用者が他のメモリカード20に交換することを要する。 In step S9, it is determined whether or not to create an own application directory. If so, the process proceeds to step S10. If not, the process is stopped. That is, when there is no “camera” directory, it is necessary to create a “camera” directory as in the processing of step S10 described later, or to temporarily stop the processing and replace the user with another memory card 20. .

 ステップS10において、ルートディレクトリファイル内にアプリケーションディレクトリを作成して、ステップS5に進む。そして、ステップS5及びステップS6の処理を経て、アプリケーションの処理を開始する。 In step S10, an application directory is created in the root directory file, and the process proceeds to step S5. Then, the processing of the application is started through the processing of steps S5 and S6.

 以上のように、例えば図示しない撮像部を備えるホストコンピュータ10は、立ち上げを開始すると、最初にルートディレクトリの存在を確認してから所定のアプリケーションディレクトリ、ここでは「カメラ」ディレクトリをチェックしてから、そのディレクトリの内容の処理を行っている。 As described above, for example, when starting up, the host computer 10 including the imaging unit (not shown) first checks the existence of the root directory and then checks the predetermined application directory, here, the “camera” directory. , Is processing the contents of that directory.

 つぎに、ディレクトリの作成処理を行うときのCPU14の動作について説明する。ホストコンピュータ10のCPU14は、ディレクトリファイルの作成が指示されると、図23に示すステップS11の処理を開始する。 Next, the operation of the CPU 14 when performing the directory creation processing will be described. When instructed to create a directory file, the CPU 14 of the host computer 10 starts the process of step S11 shown in FIG.

 ステップS11において、CPU14は、空いている論理アドレスを調べて、ステップS12に進む。 In step S11, the CPU 14 checks a free logical address and proceeds to step S12.

 ステップS12において、空いている論理アドレスがないかを判定し、空きがないときはディレクトリを作成することができないのでエラーが発生し、空きがあるときはステップS13に進む。 In step S12, it is determined whether there is a free logical address. If there is no free space, an error occurs because a directory cannot be created, and if there is a free space, the process proceeds to step S13.

 ステップS13において、作成するディレクトリファイルのディレクトリインフォメーションを初期値に設定する。さらに、ディレクトリエントリの全てを初期化し、グループインフォメーションを準備する場合はそのエリアを全てクリアして、ステップS14に進む。 In step S13, the directory information of the directory file to be created is set to an initial value. Furthermore, when all directory entries are initialized and group information is prepared, all the areas are cleared, and the process proceeds to step S14.

 ステップS14において、メモリカード20が備えるフラッシュメモリ22内の各ブロックに、ディレクトリファイルを記憶することができる容量の空きがあるかを調査して、ステップS15に進む。 In step S14, it is checked whether each block in the flash memory 22 included in the memory card 20 has a free space for storing a directory file, and the process proceeds to step S15.

 ステップS15において、上記ブロックの空きがあるかを判定し、空きがないときはエラーが発生し、空きがあるときはステップS16に進む。 (4) In step S15, it is determined whether there is a free space in the block. If there is no free space, an error occurs.

 ステップS16において、CPU14は、上記ディレクトリファイルと共にこの内容を書き込むことを指示するコマンドをメモリカード20に送信して、ステップS17に進む。このとき、メモリカード20では、コントローラ23は、上記コマンドに従ってディレクトリファイルをフラッシュメモリ22に書き込む。 In step S16, the CPU 14 transmits a command for writing the contents together with the directory file to the memory card 20, and proceeds to step S17. At this time, in the memory card 20, the controller 23 writes the directory file to the flash memory 22 according to the command.

 ステップS17において、RAM12に格納されている集合管理ファイルのビットマップテーブルを更新して、ステップS18に進む。 (4) In step S17, the bitmap table of the set management file stored in the RAM 12 is updated, and the process proceeds to step S18.

 ステップS18において、作成されたディレクトリの1つ上の階層である親ディレクトリに、当該作成されたディレクトリを登録して、ステップS19に進む。例えば、親ディレクトリのディレクトリファイルにおいて、ディレクトリインフォメーションの「ディレクトリ数」を更新したり、作成されたディレクトリに関するディレクトリエントリを作成したりする。 In step S18, the created directory is registered in the parent directory, which is one layer above the created directory, and the process proceeds to step S19. For example, in the directory file of the parent directory, the “directory number” of the directory information is updated, or a directory entry for the created directory is created.

 ステップS19において、CPU14は、所定の演算処理が終了したとき等の切りの良いタイミングで、上記集合管理ファイルの更新を指示するコマンドをメモリカード20に送信して、処理を終了する。このとき、メモリカード20では、コントローラ23は、上記コマンドに従ってフラッシュメモリ22に集合管理ファイルの更新された部分の書き込みを行う。 In step S19, the CPU 14 transmits a command instructing the update of the collective management file to the memory card 20 at a sharp timing such as when predetermined arithmetic processing ends, and ends the processing. At this time, in the memory card 20, the controller 23 writes the updated portion of the collective management file to the flash memory 22 according to the command.

 以上のように、ディレクトリを作成するときは、ディレクトリ名を作るのではなく、空きのある論理アドレスを付けている。 As mentioned above, when creating a directory, instead of creating a directory name, assign a free logical address.

 つぎに、ファイルを作成してその親ディレクトリに登録するときのCPU14の動作について説明する。ホストコンピュータ10のCPU14は、ファイルの作成が指示されると、図24に示すステップS21の処理を開始する。 Next, the operation of the CPU 14 when a file is created and registered in its parent directory will be described. When instructed to create a file, the CPU 14 of the host computer 10 starts the process of step S21 shown in FIG.

 ステップS21において、CPU14は、新たに作成されるファイルの親ディレクトリのディレクトリエントリに空きがあるかをチェックして、ステップS22に進む。 In step S21, the CPU 14 checks whether there is a free directory entry in the parent directory of the newly created file, and proceeds to step S22.

 ステップS22において、上記親ディレクトリにディレクトリエントリの空きがあるかを判定し、空きがあるときはステップS23に進み、空きがないときはエラーが発生してディレクトリへのファイルの登録処理を中止する。 In step S22, it is determined whether there is a directory entry in the parent directory. If there is a space, the process proceeds to step S23. If there is no space, an error occurs and the process of registering the file in the directory is stopped.

 ステップS23において、作成されるファイルのヘッダ部を作成してRAM12に格納し、ステップS24に進む。 In step S23, a header portion of the file to be created is created and stored in the RAM 12, and the process proceeds to step S24.

 ステップS24において、当該ファイルを各ブロックに書き込むことを指示するコマンドをメモリカード20に送信して、ステップS25に進む。したがって、メモリカード20では、コントローラ23は、このコマンドに従ってフラッシュメモリ22に新たなファイルを書き込む。2以上のブロックに上記ファイルを書き込むときは、各ブロック間の連結状態を示す連結アドレスを、各ブロックの分散管理情報として書き込む。 In step S24, a command for writing the file in each block is transmitted to the memory card 20, and the process proceeds to step S25. Therefore, in the memory card 20, the controller 23 writes a new file in the flash memory 22 according to this command. When writing the file in two or more blocks, a connection address indicating a connection state between the blocks is written as distributed management information of each block.

 ステップS25において、上記ファイルのフラッシュメモリ22への書き込みが完了したかを判定し、書き込みが完了したときはステップS26に進み、書き込みができないときはエラーが発生してディレクトリへのファイルの登録を中止する。 In step S25, it is determined whether the writing of the file to the flash memory 22 has been completed. If the writing has been completed, the process proceeds to step S26. If the writing cannot be performed, an error occurs and the registration of the file in the directory is stopped. I do.

 ステップS26において、CPU14は、上記ファイルの親ディレクトリのディレクトリファイルに対して、空いているディレクトリエントリに上記ファイルの先頭論理アドレスを書き込む。また、このディレクトリエントリに、必要に応じて「グループ番号」や、「属性情報」を書き込んで、ステップS27に進む。 In step S26, the CPU 14 writes the leading logical address of the file into an empty directory entry for the directory file of the parent directory of the file. Further, "group number" and "attribute information" are written in this directory entry as necessary, and the process proceeds to step S27.

 ステップS27において、上記ディレクトリファイルのディレクトリインフォメーションを更新して、ステップS28に進む。 In step S27, the directory information of the directory file is updated, and the process proceeds to step S28.

 ステップS28において、CPU14は、メモリカード20に対して上記ディレクトリファイルの書き込みを指示するコマンドを送信して、処理を終了する。このとき、メモリカード20では、コントローラ23は、上記コマンドに従ってディレクトリファイルをフラッシュメモリ22に書き込む。 In step S28, the CPU 14 transmits a command for writing the directory file to the memory card 20, and ends the process. At this time, in the memory card 20, the controller 23 writes the directory file to the flash memory 22 according to the command.

 以上のように、ディレクトリにファイルを登録する場合には、ディレクトリにそのファイル名を登録するのではなく、ファイル番号(先頭論理アドレス),属性情報,グループ番号からなる4バイトのディレクトリエントリを登録している。これにより、ディレクトリに多くの情報が集中するのを回避することができ、多くのファイルを登録する場合であってもディレクトリの情報量が多くなり過ぎるのを防止して、フラッシュメモリ22内のデータ記録領域を有効に活用することができる。 As described above, when registering a file in a directory, a 4-byte directory entry including a file number (first logical address), attribute information, and a group number is registered instead of registering the file name in the directory. ing. As a result, it is possible to prevent a large amount of information from being concentrated in the directory, and to prevent the amount of information in the directory from becoming too large even when registering a large number of files. The recording area can be used effectively.

 つぎに、ファイルがその親ディレクトリの用途にあっているかを調べるとき、すなわち図13に示す「対象フラグ」によってファイルの用途を調べるときのCPU14の動作について説明する。ホストコンピュータ10のCPU14は、あるディレクトリに属するファイルの用途調査の指示が出されると、図25に示すステップS31の処理を開始する。 Next, the operation of the CPU 14 when checking whether a file is suitable for the use of the parent directory, that is, when checking the use of the file by the “target flag” shown in FIG. 13 will be described. The CPU 14 of the host computer 10 starts the process of step S31 shown in FIG. 25 when an instruction to investigate the use of a file belonging to a certain directory is issued.

 ステップS31において、CPU14は、親ディレクトリのディレクトリファイルに対して、調べたいディレクトリエントリの用途情報の「対象フラグ」をチェックして、ステップS32に進む。 In step S31, the CPU 14 checks the "target flag" of the use information of the directory entry to be checked for the directory file of the parent directory, and proceeds to step S32.

 ステップS32において、上記「対象フラグ」が「1」であるかを判定し、「1」であるときはステップS33に進み、「1」でないときはステップS34に進む。 に お い て In step S32, it is determined whether the “target flag” is “1”. If “1”, the process proceeds to step S33, and if not, the process proceeds to step S34.

 ステップS33において、この「対象フラグ」の示すファイルは当該ディレクトリの用途と一致するので、CPU14は、このファイルに対して所定の処理を行う。 In step S33, since the file indicated by the "target flag" matches the purpose of the directory, the CPU 14 performs a predetermined process on this file.

 ステップS34において、この「対象フラグ」の示すファイルは当該ディレクトリの用途と一致しないので、CPU14は、このファイルを処理の対象外とみなして処理を終了する。 In step S34, since the file indicated by the "target flag" does not match the purpose of the directory, the CPU 14 regards this file as not being processed and ends the processing.

 このように、CPU14は、単に1ビットの「対象フラグ」を見ることによって、ファイルとその親ディレクトリとの用途が一致するかを容易に判別することができ、高速に所定のファイルにアクセスすることができる。 In this way, the CPU 14 can easily determine whether the usage of the file matches the purpose of the parent directory by simply looking at the 1-bit “target flag”, and can quickly access a predetermined file. Can be.

 また、「対象フラグ」がないときは、CPU14は、図26に示すステップS41の処理を開始する。 If there is no “target flag”, the CPU 14 starts the process of step S41 shown in FIG.

 ステップS41において、CPU14は、上記親ディレクトリのディレクトリファイルに対して、調べたいディレクトリエントリの「ファイル番号」を調べて、ステップS42に進む。 In step S41, the CPU 14 checks the "file number" of the directory entry to be checked for the directory file in the parent directory, and proceeds to step S42.

 ステップS42において、「ファイル番号」すなわち先頭論理アドレスの示すファイルの内、ヘッダ部のみを読み出す指示をメモリカード20に送信し、そして、メモリカード20から送信されるヘッダ部のデータをRAM12に格納して、ステップS43に進む。 In step S 42, an instruction to read only the header portion of the file indicated by the “file number”, that is, the head logical address, is transmitted to the memory card 20, and the data of the header portion transmitted from the memory card 20 is stored in the RAM 12. Then, the process proceeds to step S43.

 ステップS43において、読み出したヘッダ部の「ファイルID」と、上記親ディレクトリのディレクトリインフォメーションの図8に示す「対象ファイルID」とを比較して、ステップS44に進む。 In step S43, the "file ID" of the read header portion is compared with the "target file ID" shown in FIG. 8 of the directory information of the parent directory, and the flow advances to step S44.

 ステップS44において、読み出した「ファイルID」の上位1バイトと「対象ファイルID」とが一致するかを判定し、一致するときはステップS45に進み、一致しないときはステップS46に進む。 In step S44, it is determined whether or not the upper 1 byte of the read “file ID” matches the “target file ID”. If they match, the process proceeds to step S45, and if they do not match, the process proceeds to step S46.

 ステップS45において、このファイルは当該ディレクトリの用途と一致するので、CPU14は、このファイルに対して所定の処理を行う。 In step S45, since this file matches the purpose of the directory, the CPU 14 performs a predetermined process on this file.

 ステップS46において、このファイルは当該ディレクトリの用途と一致しないので、CPU14は、このファイルを処理の対象外とみなして処理を終了する。 In step S46, since this file does not match the purpose of the directory, the CPU 14 regards this file as not to be processed and ends the processing.

 このように、CPU14は、「対象フラグ」がない場合であっても、ファイルとその親ディレクトリとの用途が一致するかを判別することができる。 As described above, even when there is no “target flag”, the CPU 14 can determine whether the purpose of the file matches the purpose of the parent directory.

 つぎに、ディレクトリのn番目の画像ファイルを読み込むときのCPUの処理について説明する。ホストコンピュータ10のCPU14は、n番目の画像ファイルの読み込みの指示が出されると、図27に示すステップS51の処理を開始する。 Next, the processing of the CPU when reading the n-th image file in the directory will be described. When an instruction to read the nth image file is issued, the CPU 14 of the host computer 10 starts the processing of step S51 shown in FIG.

 ステップS51において、CPU14は、メモリカード20のコントローラ23に対して目的のディレクトリファイルを読み出すコマンドを送信する。具体的には、指定した番号の論理アドレスに該当するブロックからデータを読み出すコマンドを送信して、ステップS52に進む。 In step S51, the CPU 14 transmits a command for reading a target directory file to the controller 23 of the memory card 20. Specifically, a command for reading data from the block corresponding to the logical address of the designated number is transmitted, and the process proceeds to step S52.

 ステップS52において、コントローラ23は、フラッシュメモリ22から目的とするディレクトリファイルが記憶されているブロックからデータを読み出してホストコンピュータ10に送信する。ホストコンピュータ10では、CPU14は、送信されたデータをRAM12に格納して、図6に示すディレクトリインフォメーション,グループインフォメーション,ディレクトリエントリリスト等を格納して、ステップS53に進む。 In step S52, the controller 23 reads data from the block in which the target directory file is stored from the flash memory 22, and transmits the data to the host computer 10. In the host computer 10, the CPU 14 stores the transmitted data in the RAM 12, stores directory information, group information, a directory entry list, and the like shown in FIG. 6, and proceeds to step S53.

 ステップS53において、上記ディレクトリファイルの図9に示すディレクトリエントリリスト内のユーザエリアの先頭のディレクトリエントリへ行って、ステップS54に進む。 In step S53, the process goes to the first directory entry of the user area in the directory entry list of the directory file shown in FIG. 9 and proceeds to step S54.

 ステップS54において、上記ディレクトリエントリの図13に示す「対象フラグ」をチェックして、ステップS55に進む。 In step S54, the "target flag" shown in FIG. 13 of the directory entry is checked, and the flow advances to step S55.

 ステップS55において、CPU14は、「対象フラグ」に基づいて、先頭のディレクトリエントリの示すファイルが画像であるか又は画像でないかを判定し、画像であるときはステップS56に進み、画像でないときはステップS61に進む。 In step S55, the CPU 14 determines whether the file indicated by the first directory entry is an image or not an image based on the “target flag”. If the file is an image, the process proceeds to step S56. Proceed to S61.

 ステップS56において、上記ディレクトリエントリの示すファイル番号が指定したファイル番号nであるかを判定し、指定したファイル番号であるときはステップS57に進み、指定した番号でないときはステップS60に進む。 In step S56, it is determined whether or not the file number indicated by the directory entry is the specified file number n. If the file number is the specified file number, the process proceeds to step S57, and if not, the process proceeds to step S60.

 ステップS57において、CPU14は、上記ファイル番号の獲得の処理を行って、ステップS58に進む。 In step S57, the CPU 14 performs the process of acquiring the file number, and proceeds to step S58.

 ステップS58において、CPU14は、獲得したファイル番号(先頭論理アドレス)に基づいて、当該ファイルの512バイトのヘッダ部を読み出すコマンドをメモリカード20に送信する。そして、CPU14は、メモリカード20から送信されるヘッダ部のエントリリストに基づいて、インデックス,画像等の各エントリデータの「開始アドレス」,「データサイズ」を調べて、ステップS59に進む。 In step S58, the CPU 14 transmits to the memory card 20 a command to read the 512-byte header of the file based on the obtained file number (head logical address). Then, the CPU 14 checks the “start address” and “data size” of each entry data such as an index and an image based on the entry list of the header section transmitted from the memory card 20, and proceeds to step S59.

 ステップS59において、CPU14は、上記「開始アドレス」,「データサイズ」に基づいて、インデックス,画像等の各エントリデータを読み出すコマンドをメモリカード20に送信する。メモリカード20では、コントローラ23は、上記コマンドに従って各エントリデータを読み出してホストコンピュータ10に送信する。なお、エントリデータが複数のブロック内に記憶されているときは、「連結アドレス」に基づいて各ブロックからエントリデータを読み出す。 In step S59, the CPU 14 transmits a command to read out each entry data such as an index and an image to the memory card 20 based on the “start address” and “data size”. In the memory card 20, the controller 23 reads out each entry data according to the above-mentioned command, and transmits it to the host computer 10. When the entry data is stored in a plurality of blocks, the entry data is read from each block based on the “link address”.

 一方、ステップS56でディレクトリエントリの示すファイル番号が目的のファイル番号nでないと判定したときのステップS60において、CPU14は、ディレクトリエントリの数を1つカウントアップして、ステップS61に進む。 On the other hand, when it is determined in step S56 that the file number indicated by the directory entry is not the target file number n, in step S60, the CPU 14 increments the number of directory entries by one, and proceeds to step S61.

 ステップS61において、CPU14は、つぎの順番のディレクトリエントリの処理に移行して、ステップS62に進む。 In step S61, the CPU 14 proceeds to the processing of the next directory entry, and proceeds to step S62.

 ステップS62において、CPU14は、最後のディレクトリエントリの処理が終了したかを判定し、終了したと判定したときは該当するファイルがないものとして一連の処理を終了し、終了しないときはステップS54に戻って、上記ステップS61における次のディレクトリエントリの処理を行う。 In step S62, the CPU 14 determines whether or not the processing of the last directory entry has been completed. If it is determined that the processing has been completed, the CPU 14 determines that there is no corresponding file, ends the series of processing, and if not, returns to step S54. Then, the process for the next directory entry in step S61 is performed.

 以上のように、上記メモリカードシステム1において、ホストコンピュータ10は、各ファイルにファイル名を設けらてていなくても、フラッシュメモリ22から所望のファイルを読み出すことができる。具体的には、上記ホストコンピュータ10のCPU14は、各ディレクトリに設けられたディレクトリエントリリストを順番に調べる。そして、所望のファイルを示すディレクトリエントリを見つけたときは、それが示す論理アドレスに従って上記所望のファイルを読み出すコマンドをメモリカード20に送信し、ファイルの読み出し処理を行っている。これにより、ファイル名やディレクトリ名による文字列処理が不要になるので、文字列格納のためのエリアを各ディレクトリに設けないで済み、ディレクトリ管理エリアを小さくして、フラッシュメモリ22により多くのデータを記憶させることができる。 As described above, in the memory card system 1, the host computer 10 can read a desired file from the flash memory 22 even if each file does not have a file name. Specifically, the CPU 14 of the host computer 10 sequentially checks the directory entry list provided in each directory. When a directory entry indicating a desired file is found, a command for reading the desired file is transmitted to the memory card 20 in accordance with the logical address indicated by the entry, and a file reading process is performed. This eliminates the need for character string processing based on file names and directory names, so that an area for storing character strings does not need to be provided in each directory, the directory management area is reduced, and more data is stored in the flash memory 22. Can be memorized.

 つぎに、ディレクトリのn番目の画像ファイルを削除するときのCPUの処理について説明する。ホストコンピュータ10のCPU14は、n番目の画像ファイルの削除の指示が出されると、図28に示すステップS71の処理を開始する。 Next, the processing of the CPU when deleting the n-th image file in the directory will be described. When an instruction to delete the n-th image file is issued, the CPU 14 of the host computer 10 starts the process of step S71 shown in FIG.

 ステップS71において、CPU14は、メモリカード20のコントローラ23に対して目的のディレクトリファイルを読み出すコマンドを送信する。具体的には、指定した番号の論理アドレスに該当するブロックを読み出すコマンドを送信して、ステップS72に進む。 In step S71, the CPU 14 transmits a command for reading a target directory file to the controller 23 of the memory card 20. Specifically, a command for reading a block corresponding to the logical address of the designated number is transmitted, and the process proceeds to step S72.

 ステップS72において、コントローラ23は、フラッシュメモリ22から目的とするディレクトリファイルが記憶されているブロックからデータを読み出してホストコンピュータ10に送信する。ホストコンピュータ10では、CPU14は、送信されたデータをRAM12に格納して、ステップS73に進む。よって、RAM12には、図6に示すディレクトリインフォメーション,グループインフォメーション,ディレクトリエントリリスト等が格納される。 In step S72, the controller 23 reads data from the block in which the target directory file is stored from the flash memory 22, and transmits the data to the host computer 10. In the host computer 10, the CPU 14 stores the transmitted data in the RAM 12, and proceeds to step S73. Therefore, the RAM 12 stores directory information, group information, a directory entry list, and the like shown in FIG.

 ステップS73において、上記ディレクトリファイルの図9に示すディレクトリエントリリスト内のユーザエリアの先頭のディレクトリエントリへ行って、ステップS74に進む。 In step S73, the process goes to the first directory entry of the user area in the directory entry list of the directory file shown in FIG. 9 and proceeds to step S74.

 ステップS74において、上記ディレクトリエントリの図13に示す「対象フラグ」をチェックして、ステップS75に進む。 In step S74, the "target flag" shown in FIG. 13 of the directory entry is checked, and the flow advances to step S75.

 ステップS75において、CPU14は、「対象フラグ」に基づいて、先頭のディレクトリエントリの示すファイルが画像であるか又は画像でないかを判定し、画像であるときはステップS76に進み、画像でないときはステップS83に進む。 In step S75, the CPU 14 determines whether the file indicated by the first directory entry is an image or not an image based on the “target flag”. If the file is an image, the process proceeds to step S76. Proceed to S83.

 ステップS76において、上記ディレクトリエントリの示すファイル番号が指定したファイル番号nであるかを判定し、指定したファイル番号であるときはステップS77に進み、指定したファイル番号でないときはステップS82に進む。 In step S76, it is determined whether or not the file number indicated by the directory entry is the specified file number n. If the file number is the specified file number, the process proceeds to step S77. If not, the process proceeds to step S82.

 ステップS77において、CPU14は、上記ファイル番号の獲得の処理を行って、ステップS78に進む。 In step S77, the CPU 14 performs a process of acquiring the file number, and proceeds to step S78.

 ステップS78において、CPU14は、指定されたファイル番号のファイル削除処理を示すコマンドをメモリカード20に送信して、ステップS79に進む。一方、メモリカード20では、コントローラ23は、上記コマンドに従って指定されたファイルが記憶されているブロックをクリアする。 In step S78, the CPU 14 transmits a command indicating a file deletion process of the designated file number to the memory card 20, and proceeds to step S79. On the other hand, in the memory card 20, the controller 23 clears the block storing the file specified according to the command.

 ステップS79において、CPU14は、上記目的のディレクトリのディレクトリエントリリストから削除したファイルに関するディレクトリエントリを削除する。このとき、CPU14は、削除したディレクトリエントリの分を詰めてディレクトリエントリリストを更新して、ステップS80に進む。 In step S79, the CPU 14 deletes a directory entry relating to the deleted file from the directory entry list of the target directory. At this time, the CPU 14 updates the directory entry list by filling in the deleted directory entries, and proceeds to step S80.

 ステップS80において、CPU14は、上記ディレクトリエントリが削除されたのに伴ってディレクトリインフォメーションの更新処理を行う。例えば、「ファイル数(全ファイル)」,「対象ファイル数」,「ディレクトリエントリ数」等を更新して、ステップS81に進む。 In step S80, the CPU 14 updates the directory information in accordance with the deletion of the directory entry. For example, the “number of files (all files)”, “number of target files”, “number of directory entries” and the like are updated, and the process proceeds to step S81.

 ステップS81において、上述のようにディレクトリファイルのヘッダ部を構成するディレクトリエントリリスト及びディレクトリインフォメーションが変更されたので、CPU14は、上記ディレクトリファイルの新たなヘッダ部を書き込むことを示すコマンドをメモリカード20に送信する。メモリカード20では、コントローラ23は、上記コマンドに従ってフラッシュメモリ22に対して上記ディレクトリファイルヘッダ部の更新処理を行う。 In step S81, since the directory entry list and the directory information constituting the header of the directory file have been changed as described above, the CPU 14 sends to the memory card 20 a command indicating that a new header of the directory file is to be written. Send. In the memory card 20, the controller 23 updates the directory file header of the flash memory 22 according to the command.

 一方、ステップS76でディレクトリエントリの示すファイル番号が目的のファイル番号nでないと判定したときのステップS82において、CPU14は、ディレクトリエントリの数を1つカウントアップして、ステップS83に進む。 On the other hand, in step S82 when it is determined in step S76 that the file number indicated by the directory entry is not the target file number n, the CPU 14 increments the number of directory entries by one, and proceeds to step S83.

 ステップS83において、CPU14は、つぎの順番のディレクトリエントリの処理に移行して、ステップS84に進む。 In step S83, the CPU 14 proceeds to the processing of the directory entry in the next order, and proceeds to step S84.

 ステップS84において、CPU14は、最後のディレクトリエントリの処理が終了したかを判定し、終了したと判定したときは該当するファイルがないものとして一連の処理を終了し、終了てないと判定したときはステップS74に戻って、上記ステップS83における次のディレクトリエントリの処理を行う。 In step S84, the CPU 14 determines whether or not the processing of the last directory entry has been completed. If it is determined that the processing has been completed, the CPU 14 determines that there is no corresponding file and ends the series of processing. Returning to step S74, the process for the next directory entry in step S83 is performed.

 以上のように、上記メモリカードシステム1において、ホストコンピュータ10は、各ファイルにファイル名を設けらてていなくても、フラッシュメモリ22に記憶されている所望のファイルを削除することができる。すなわち、上記ホストコンピュータ10のCPU14は、各ディレクトリに設けられたディレクトリエントリリストを順番に調べて所望のファイルを示すディレクトリエントリを見つけ出し、その論理アドレスに従って上記所望のファイルを削除するコマンドをメモリカード20に送信する。これにより、フラッシュメモリ22に記憶されているファイルの削除処理を行っている。したがって、ファイル名やディレクトリ名による文字列処理が不要になるので、文字列格納のためのエリアを各ディレクトリに設けないで済み、ディレクトリ管理エリアを小さくして、フラッシュメモリ22により多くのデータを記憶させることができる。 As described above, in the memory card system 1, the host computer 10 can delete a desired file stored in the flash memory 22 even if a file name is not provided for each file. That is, the CPU 14 of the host computer 10 sequentially searches the directory entry list provided in each directory to find a directory entry indicating a desired file, and issues a command for deleting the desired file according to the logical address to the memory card 20. Send to As a result, the file stored in the flash memory 22 is deleted. This eliminates the need for character string processing based on file names and directory names, so that an area for storing character strings does not need to be provided in each directory, the directory management area is reduced, and more data is stored in the flash memory 22. Can be done.

 つぎに、ディレクトリを削除するときのCPUの処理について説明する。ホストコンピュータ10のCPU14は、削除するディレクトリが指示されると、図29に示すステップS91の処理を開始する。 Next, the processing of the CPU when deleting a directory will be described. When the directory to be deleted is instructed, the CPU 14 of the host computer 10 starts the process of step S91 shown in FIG.

 ステップS91において、CPU14は、削除指定されたディレクトリのディレクトリファイルをフラッシュメモリ22からの読み出しを指示するコマンドをメモリカード20に送信して、ステップS92に進む。メモリカード20において、コントローラ23は、上記コマンドに基づいて、フラッシュメモリ22からディレクトリファイルを読み出し、これを第2のシリアルI/F21を介して上記ホストコンピュータ10に送信する。 In step S91, the CPU 14 transmits to the memory card 20 a command for instructing the directory file of the directory designated for deletion to be read from the flash memory 22, and proceeds to step S92. In the memory card 20, the controller 23 reads a directory file from the flash memory 22 based on the command, and transmits the directory file to the host computer 10 via the second serial I / F 21.

 ステップS92において、CPU14は、メモリカード20からのディレクトリファイルをRAM12に格納し、ディレクトリエントリリストの各ディレクトリエントリを調べて、ステップS93に進む。 In step S92, the CPU 14 stores the directory file from the memory card 20 in the RAM 12, checks each directory entry in the directory entry list, and proceeds to step S93.

 ステップS93において、CPU14は、ファイルやディレクトリを指定するディレクトリエントリがあるか、すなわち下の階層にファイルや他のディレクトリが存在しているかを判定する。ファイル等を指定するディレクトリエントリがあるときはエラーが発生したものとしてこのディレクトリの削除処理を終了し、ないときはステップS94に進み、ステップS94において、CPU14は、この削除の対象となっているディレクトリをその親ディレクトリから削除することを指示するコマンドを、メモリカード20に送信して、ステップS95に進む。 In step S93, the CPU 14 determines whether there is a directory entry designating a file or a directory, that is, whether a file or another directory exists in a lower hierarchy. If there is a directory entry designating a file or the like, it is determined that an error has occurred, and this directory deletion processing is terminated. If there is no directory entry, the process proceeds to step S94. Is transmitted to the memory card 20, and the process proceeds to step S95.

 ステップS95において、メモリカード20のコントローラ23は、削除対象のディレクトリファイルを格納しているフラッシュメモリ22のブロック内のデータを消去して、ステップS96に進む。なお、上記ブロックの分散管理情報に「消去済み」のフラグを立てて、所定の処理が終了してから上記ブロック内のデータを消去しても良い。 In step S95, the controller 23 of the memory card 20 deletes the data in the block of the flash memory 22 storing the directory file to be deleted, and proceeds to step S96. Note that a flag of “erased” may be set in the distribution management information of the block, and data in the block may be erased after predetermined processing is completed.

 ステップS96において、消去が正常に終了したかを判定し、正常に終了したときはステップS97に進み、正常に終了していないときはエラーが発生したものとして、ディレクトリ削除の処理を中止する。 In step S96, it is determined whether the erasure has been completed normally. If the erasure has been completed normally, the process proceeds to step S97. If the erasure has not been completed normally, it is determined that an error has occurred, and the directory deletion process is stopped.

 ステップS97において、CPU14は、RAM12に格納している集合管理ファイルに対してディレクトリ削除によって変更が生じた部分を更新して、ステップS98に進む。 In step S97, the CPU 14 updates the part of the collective management file stored in the RAM 12 that has been changed by the directory deletion, and proceeds to step S98.

 ステップS98において、CPU14は、所定の演算処理の終了した後等の切りのよい時に、上記集合管理ファイルをメモリカード20に送信すると共にこのファイルを書き込むことを指示するコマンドを送信する。したがって、メモリカード20では、コントローラ23は、上記コマンドに従って集合管理ファイルをフラッシュメモリに書き込む処理を行う。 In step S98, the CPU 14 transmits the collective management file to the memory card 20 and transmits a command instructing to write the file when it is time to cut the data such as after completion of the predetermined arithmetic processing. Therefore, in the memory card 20, the controller 23 performs a process of writing the collective management file to the flash memory according to the command.

 以上のように、上記メモリカードシステム1において、ホストコンピュータ10は、各ファイルにファイル名を設けられていなくても、フラッシュメモリ22に記憶されている所望のディレクトリファイルを削除することができる。すなわち、上記ホストコンピュータ10のCPU14は、削除されるディレクトリがその下にあるファイルのファイル名等情報を有していなくても、当該ディレクトリに設けられたディレクトリエントリリストによって、削除されるディレクトリの下にファイル等がないかを調べることができる。これにより、ファイル名やディレクトリ名による文字列処理が不要になるので、文字列格納のためのエリアを各ディレクトリに設けないで済み、ディレクトリ管理エリアを小さくして、フラッシュメモリ22により多くのデータを記憶させることができる。 As described above, in the memory card system 1, the host computer 10 can delete a desired directory file stored in the flash memory 22 even if a file name is not provided for each file. In other words, even if the directory to be deleted does not have information such as the file names of the files under the directory, the CPU 14 of the host computer 10 can use the directory entry list provided in the directory to delete the directory under the directory to be deleted. Can be checked for any files. This eliminates the need for character string processing based on file names and directory names, so that an area for storing character strings does not need to be provided in each directory, the directory management area is reduced, and more data is stored in the flash memory 22. Can be memorized.

 つぎに、連続記録編集されているときの変更処理を行うときのCPU14の動作について説明する。ホストコンピュータ10のCPU14は、ディレクトリエントリの属性情報の「連続記録」の変更処理が指示されると、図30に示すステップS101の処理を開始する。 Next, the operation of the CPU 14 when performing a change process during continuous recording and editing will be described. The CPU 14 of the host computer 10 starts the process of step S101 shown in FIG. 30 when the process of changing the “continuous recording” of the attribute information of the directory entry is instructed.

 ステップS101において、CPU14は、連続記録されているファイルの削除処理が指示されたかを判定し、ファイルの削除処理のときはステップS102に進み、ファイルの削除処理でないときはステップS106に進む。 In step S101, the CPU 14 determines whether or not an instruction to delete continuously recorded files has been issued. If it is determined that the file is to be deleted, the process proceeds to step S102. If not, the process proceeds to step S106.

 ステップS102において、指定されたファイルの削除処理のコマンドをメモリカード20に送信することによって当該ファイルの削除処理を実行して、ステップS103に進む。 In step S102, a file deletion command is transmitted to the memory card 20 by transmitting a command of the specified file deletion processing, and the process proceeds to step S103.

 ステップS103において、親ディレクトリのディレクトリエントリリストから、当該削除したファイルのディレクトリエントリの「連続記録」が「11」であるかを判定する。「連続記録」が「11」であるときはステップS104に進み、「11」でないときは処理を終了する。 In step S103, it is determined from the directory entry list of the parent directory whether the “continuous record” of the directory entry of the deleted file is “11”. If "continuous recording" is "11", the process proceeds to step S104, and if not "11", the process is terminated.

 ステップS104において、当該削除したファイルのディレクトリエントリの次のディレクトリエントリの「連続記録」が「10」であるかを判定し、「10」であるときはステップS105に進み、「10」でないときは処理を終了する。 In step S104, it is determined whether the “continuous record” of the directory entry next to the directory entry of the deleted file is “10”, and if “10”, the process proceeds to step S105. The process ends.

 ステップS105において、上記次のディレクトリエントリの「連続記録」を「11」に変更して、上記次のディレクトリエントリの示すファイルを連続記録の先頭にして、処理を終了する。 In step S105, the "continuous recording" of the next directory entry is changed to "11", and the file indicated by the next directory entry is set as the head of the continuous recording, and the process ends.

 したがって、上述の図14に示すように、ファイル2〜ファイル5が連続記録の場合においては、ファイル2を削除すると、ステップS102〜ステップS105の処理によって、図31に示すように、ファイル3を示すディレクトリエントリの連続記録が「11」に変更される。すなわち、連続記録の先頭のファイルを削除する場合であって、かつ、削除するファイルの次のファイルが連続記録の途中である場合に限り、当該次のファイルの「連続記録」を「11」に変更する。これにより、連続記録のファイルを削除する場合であっても、削除されていない各ファイルの連続記録の状態を維持することができる。 Therefore, as shown in FIG. 14 described above, when the file 2 to the file 5 are continuously recorded, if the file 2 is deleted, the processing of the steps S102 to S105 indicates the file 3 as shown in FIG. The continuous record of the directory entry is changed to “11”. That is, only when deleting the first file of the continuous recording and when the file next to the file to be deleted is in the middle of the continuous recording, the “continuous recording” of the next file is changed to “11”. change. Thus, even when a file of continuous recording is deleted, the state of continuous recording of each file that has not been deleted can be maintained.

 一方、ステップS101で削除処理でないと判定したときのステップS106において、連続記録されているファイル間に新たなファイルの挿入処理が指示されたかを判定し、ファイルの挿入処理のときはステップS110に進み、ファイルの挿入処理でないときはステップS107に進む。 On the other hand, in step S106 when it is determined in step S101 that it is not a deletion process, it is determined whether or not a new file insertion process has been instructed between continuously recorded files, and in the case of a file insertion process, the process proceeds to step S110. If not, the process proceeds to step S107.

 ステップS107において、上述の図19等に示すグループの変更処理が指示されたかを判定し、グループの変更処理のときはステップS108に進み、グループの変更処理でないときは処理を終了する。 In step S107, it is determined whether or not the above-described group change processing shown in FIG. 19 and the like has been instructed. If the group change processing has been performed, the process proceeds to step S108; otherwise, the process ends.

 ステップS108において、親ディレクトリのディレクトリエントリリストから、当該グループ変更を行うファイルを示すディレクトリエントリリストの「グループ番号」を変更して、ステップS109に進む。 In step S108, the “group number” of the directory entry list indicating the file for which the group is to be changed is changed from the directory entry list of the parent directory, and the process proceeds to step S109.

 ステップS109において、上記ディレクトリエントリの「連続記録」が「00」であるかを判定し、「00」であるときは処理を終了し、「00」でないときはステップS104に進む。そして、上述のステップS104,S105の処理を行う。 In step S109, it is determined whether or not "continuous recording" of the directory entry is "00". If it is "00", the process is terminated. Then, the processes of steps S104 and S105 are performed.

 したがって、グループ変更があったファイルは、「連続記録」が「00」の通常のファイルを除いてその連続記録の状態から外れるので、その直後のファイルの「連続記録」が「10」ならば、その直後のファイルのディレクトリエントリの「連続記録」を「11」にする。これにより、グループ変更のあったファイルの直後のファイルを連続記録の先頭にすることができ、グループ変更のない各ファイルの連続記録の状態を維持することができる。 Therefore, a file whose group has been changed is out of the state of continuous recording except for a normal file whose “continuous recording” is “00”. If the “continuous recording” of the immediately following file is “10”, The “continuous record” of the directory entry of the file immediately after that is set to “11”. As a result, the file immediately after the file whose group has been changed can be set as the head of continuous recording, and the state of continuous recording of each file without group change can be maintained.

 一方、ステップS106で挿入処理を行うと判定したときのステップS110において、挿入の対象となるファイルを実際に挿入して、ステップS111に進む。 On the other hand, in step S110 when it is determined in step S106 that insertion processing is to be performed, a file to be inserted is actually inserted, and the flow advances to step S111.

 ステップS111において、挿入されたファイルの次のファイルに対応するディレクトリエントリの「連続記録」が「10」であるかを判定し、「10」であるときはステップS112に進み、「10」でないときはステップS113に進む。 In step S111, it is determined whether or not “continuous recording” of the directory entry corresponding to the file next to the inserted file is “10”. If “10”, the process proceeds to step S112. Goes to step S113.

 ステップS112において、挿入したファイルの「連続記録」を「10」にして、処理を終了する。 に お い て In step S112, the “continuous recording” of the inserted file is set to “10”, and the process ends.

 ステップS113において、挿入したファイルの「連続記録」を「00」にして、処理を終了する。 (4) In step S113, “continuous recording” of the inserted file is set to “00”, and the process ends.

 例えば、上述の図14において、ファイル5とファイル6の間にファイル5.5を挿入すると、図32に示すように、その次のファイル6の「連続記録」は「11」であるので、ステップS111,S113の処理によって、挿入されたファイルの「連続記録」は「00」になる。また、ファイル7とファイル8の間にファイル7.5を挿入すると、その次のファイル8の「連続記録」は「10」であるので、ステップS111,S112の処理によって、挿入されたファイルの「連続記録」は「10」になる。 For example, in FIG. 14, when the file 5.5 is inserted between the file 5 and the file 6, the “continuous recording” of the next file 6 is “11” as shown in FIG. By the processing of S113, “continuous recording” of the inserted file becomes “00”. Further, when the file 7.5 is inserted between the file 7 and the file 8, the “continuous recording” of the next file 8 is “10”, and thus the “continuous recording” of the inserted file is performed by the processes of steps S111 and S112. Becomes "10".

 したがって、各ファイルの連続記録の直前にファイルが挿入された場合は、当該ファイルを通常の状態にし、また、連続記録の途中にファイルが挿入されたときは当該ファイルを連続記録の状態にしている。 Therefore, when a file is inserted immediately before continuous recording of each file, the file is set to a normal state, and when a file is inserted during continuous recording, the file is set to continuous recording. .

 以上詳細に説明したように、本発明は、ファイル名やディレクトリ名を使うことなくファイルの読み出し、書き込み、消去等を行うことができ、また、より少ないデータ量でディレクトリやファイルの管理を行うことができるので、例えばフラッシュメモリ22のように比較的記憶容量の少ない記録媒体にファイル等を記録するときに好適なものである。 As described in detail above, the present invention can read, write, and delete a file without using a file name or a directory name, and can manage a directory or a file with a smaller data amount. This is suitable for recording a file or the like on a recording medium having a relatively small storage capacity, such as the flash memory 22, for example.

 なお、本実施の形態では、記録媒体の一例としてフラッシュメモリを備えるメモリカードを例に挙げて説明したが、本発明はこれに限定されるものではなく、例えば磁気ディスクや光ディスク等の媒体にも適用可能であるのは勿論である。 In the present embodiment, a memory card including a flash memory has been described as an example of a recording medium. However, the present invention is not limited to this, and may be applied to a medium such as a magnetic disk or an optical disk. It is, of course, applicable.

本発明を適用したメモリカードシステムの構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of a memory card system to which the present invention has been applied. 上記メモリカードシステムのメモリカード内のフラッシュメモリに格納されるデータの構成を説明するための図である。FIG. 3 is a diagram for explaining a configuration of data stored in a flash memory in a memory card of the memory card system. 上記フラッシュメモリに格納されるユーザ形式のファイルの構成を説明するための図である。FIG. 4 is a diagram for explaining a configuration of a user format file stored in the flash memory. 上記ファイルのOSヘッダの構成を説明するための図である。FIG. 3 is a diagram for describing a configuration of an OS header of the file. 上記ファイルのファイルヘッダ及びエントリエリアの構成を説明するための図である。FIG. 3 is a diagram for explaining a configuration of a file header and an entry area of the file. ディレクトリファイルの構成を説明するための図である。FIG. 3 is a diagram for explaining a configuration of a directory file. 上記ディレクトリファイルのシステムエントリエリアの構成を説明するための図である。FIG. 4 is a diagram for explaining a configuration of a system entry area of the directory file. 上記ディレクトリファイルのディレクトリインフォメーションの構成を説明するための図である。FIG. 4 is a diagram for explaining the structure of directory information of the directory file. 上記ディレクトリインフォメーションによって決められるシステム用ディレクトリエリアとユーザエリアの説明図である。FIG. 3 is an explanatory diagram of a system directory area and a user area determined by the directory information. 上記ディレクトリファイルのグループインフォメーションの構成を説明するための図である。FIG. 4 is a diagram for explaining the structure of group information of the directory file. 上記ディレクトリファイルのディレクトリエントリリストの構成を説明するための図である。FIG. 4 is a diagram for explaining a configuration of a directory entry list of the directory file. 各ディレクトリエントリのファイル番号を説明するための図である。FIG. 4 is a diagram for explaining a file number of each directory entry. 各ディレクトリエントリの属性情報を説明するための図である。FIG. 4 is a diagram for explaining attribute information of each directory entry. 各ファイルの連続記録の状態の説明図である。FIG. 4 is an explanatory diagram of a state of continuous recording of each file. 各ディレクトリエントリのグループ番号を説明するための図である。FIG. 4 is a diagram for explaining a group number of each directory entry. ディレクトリ内のグループの取り扱いを説明するための図である。FIG. 6 is a diagram for explaining handling of groups in a directory. ディレクトリ内のグループの取り扱いを説明するための図である。FIG. 6 is a diagram for explaining handling of groups in a directory. 各ファイルとグループの関係を示す図である。FIG. 4 is a diagram illustrating a relationship between each file and a group. グループをサポートするときの階層構造の説明図である。FIG. 4 is an explanatory diagram of a hierarchical structure when supporting a group. グループをサポートしないときの階層構造の説明図である。FIG. 4 is an explanatory diagram of a hierarchical structure when a group is not supported. グループをサポートしないときの階層構造の説明図である。FIG. 4 is an explanatory diagram of a hierarchical structure when a group is not supported. アプリケーションを立ち上げるときの処理を示すフローチャートである。9 is a flowchart illustrating a process when starting an application. ディレクトリを作成するときの処理を示すフローチャートである。It is a flowchart which shows the process at the time of creating a directory. ファイルを登録するときの処理を示すフローチャートである。9 is a flowchart illustrating processing when registering a file. 対象フラグがある場合の処理を示すフローチャートである。It is a flowchart which shows the process when there exists a target flag. 対象フラグがない場合の処理を示すフローチャートである。It is a flowchart which shows a process when there is no target flag. 画像ファイルを読み込むときの処理を示すフローチャートである。9 is a flowchart illustrating processing when reading an image file. 画像ファイルを削除するときの処理を示すフローチャートである。9 is a flowchart illustrating processing when deleting an image file. ディレクトリを削除するときの処理を示すフローチャートである。It is a flowchart which shows the process at the time of deleting a directory. 連続記録の状態を変更するときの処理を示すフローチャートである。9 is a flowchart illustrating a process for changing a state of continuous recording. 1つのファイルを削除したときの連続記録の状態を示す図である。FIG. 11 is a diagram illustrating a state of continuous recording when one file is deleted. ファイルを挿入したときの連続記録の状態を示す図である。FIG. 11 is a diagram illustrating a state of continuous recording when a file is inserted.

符号の説明Explanation of reference numerals

1 メモリカードシステム、10 ホストコンピュータ、11 ハードディスク、12 RAM、13 第1のシリアルI/F、14 CPU、20 メモリカード、21 第2のシリアルI/F、22 フラッシュメモリ、 23 コントローラ Reference Signs List 1 memory card system, 10 host computer, 11 hard disk, 12 RAM, 13 first serial I / F, 14 CPU, 20 memory card, 21 second serial I / F, 22 flash memory, 23 controller

Claims (26)

 ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記憶する記憶手段と、
 記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理する管理手段とを備え、
 上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示することを特徴とするファイル管理装置。
Storage means for storing a file having a file number, and a directory having, for each file, a directory entry comprising a file number and group information;
Management means for managing the file or directory indicated by the file number of the directory entry of the stored one directory so as to be in a hierarchy below the one directory,
The file management device, wherein the management means collects and displays each file for each group based on the group information of the one directory read from the storage means.
 上記記憶手段は、上記ディレクトリとして、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するとともに上記グループ情報毎にグループ名称を含むグループインフォメーションを有するディレクトリを記憶し、
 上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報及びそれに対応するグループインフォメーション情報に基づいて、上記グループ情報の異なるファイル同士にそのグループ情報に対応する名前を付けて管理することを特徴とする請求項1記載のファイル管理装置。
The storage means stores, as the directory, a directory having a directory entry including a file number and group information for each file, and a directory having group information including a group name for each group information.
The management means manages the files having different group information by assigning names corresponding to the group information based on the group information of the one directory read from the storage means and the group information information corresponding thereto. The file management device according to claim 1, wherein:
 上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、記憶手段に記録されたディレクトリエントリを並べかえる機能を有することを特徴とする請求項1記載のファイル管理装置。 2. The file management apparatus according to claim 1, wherein the management unit has a function of rearranging directory entries recorded in the storage unit based on the group information of the one directory read from the storage unit.  上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、グループ毎に擬似ディレクトリを生成し、各ファイルを上記擬似ディレクトリに属するように分類して表示することを特徴とする請求項1記載のファイル管理装置。 The management unit generates a pseudo directory for each group based on the group information of the one directory read from the storage unit, and classifies and displays each file as belonging to the pseudo directory. The file management device according to claim 1, wherein  上記ディレクトリは、各アプリケーション毎に生成されることを特徴とする請求項1記載のファイル管理装置。 2. The file management device according to claim 1, wherein the directory is created for each application.  ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記憶し、
 記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理し、
 上記一のディレクトリのグループ情報を読み出し、
 読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示することを特徴とするファイル管理方法。
Storing a file having a file number and a directory having a directory entry for each file, the directory entry including a file number and group information;
Manage the file or directory indicated by the file number of the directory entry of the stored one directory so as to be in a hierarchy below the one directory,
Read the group information of the one directory,
A file management method comprising: collecting and displaying each file for each group based on the read group information of the one directory.
 上記ディレクトリとして、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するとともに上記グループ情報毎にグループ名称を含むグループインフォメーションを有するディレクトリを記憶し、
 上記一のディレクトリのグループ情報及びそれに対応するグループインフォメーション情報を読み出し、
 読み出した上記一のディレクトリのグループ情報及びそれに対応するグループインフォメーション情報に基づいて、上記グループ情報の異なるファイル同士にそのグループ情報に対応する名前を付けて管理することを特徴とする請求項6記載のファイル管理方法。
As the directory, a directory having group information including a group name for each group information and having a directory entry including a file number and group information for each file is stored,
Reading the group information of the one directory and the group information information corresponding thereto,
7. The file management system according to claim 6, wherein, based on the read group information of the one directory and the group information information corresponding thereto, files having different group information are managed by giving names corresponding to the group information. File management method.
 上記読み出した上記一のディレクトリのグループ情報に基づいて、記録されたディレクトリエントリを並べかえることを特徴とする請求項6記載のファイル管理方法。 7. The file management method according to claim 6, wherein the recorded directory entries are rearranged based on the read group information of the one directory.  上記読み出した上記一のディレクトリのグループ情報に基づいて、グループ毎に擬似ディレクトリを生成し、各ファイルを上記擬似ディレクトリに属するように分類して表示することを特徴とする請求項6記載のファイル管理方法。 7. The file management according to claim 6, wherein a pseudo directory is generated for each group based on the read group information of the one directory, and each file is classified and displayed so as to belong to the pseudo directory. Method.  上記ディレクトリは、各アプリケーション毎に生成されることを特徴とする請求項6記載のファイル管理方法。 7. The file management method according to claim 6, wherein the directory is created for each application. ファイル番号を有するファイルと、ファイル番号とファイル同士を区別して管理するためのグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録し、
 記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理され、
 上記一のディレクトリのグループ情報が読み出され、
 読み出された上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示されることを特徴とする記録媒体。
Record a file having a file number, and a directory having a directory entry for each file including a file number and group information for distinguishing and managing the files,
The file or directory indicated by the file number of the directory entry of the stored one directory is managed so as to be in a hierarchy below the one directory,
The group information of the one directory is read,
A recording medium characterized in that files are collected and displayed for each group based on the read group information of the one directory.
 上記ディレクトリとして、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するとともに上記グループ情報毎にグループ名称を含むグループインフォメーションを有するディレクトリを記録することを特徴とする請求項11記載の記録媒体。 12. The recording medium according to claim 11, wherein a directory having a directory entry including a file number and group information for each file and recording a group having group information including a group name for each group information is recorded as the directory.  上記グループ情報によってファイルを分類する機能を有するホスト機器への装着が可能であり、かつ上記グループ情報によってファイルを分類する機能を有さないホスト機器への装着が可能であることを特徴とする請求項11記載の記録媒体。 Claims: It is possible to mount to a host device having a function of classifying files by the group information, and to be mountable to a host device having no function of classifying files by the group information. Item 12. The recording medium according to Item 11.  上記記録されたディレクトリエントリは、読み出された上記一のディレクトリのグループ情報に基づいて、並べかえられることを特徴とする請求項11記載の記録媒体。 12. The recording medium according to claim 11, wherein the recorded directory entries are rearranged based on the read group information of the one directory.  上記読み出された一のディレクトリのグループ情報に基づいて、グループ毎に擬似ディレクトリが生成され、各ファイルを上記擬似ディレクトリに属するように分類して表示されることを特徴とする請求項11記載の記録媒体。 12. The pseudo directory according to claim 11, wherein a pseudo directory is generated for each group based on the read group information of the one directory, and each file is classified and displayed as belonging to the pseudo directory. recoding media.  上記ディレクトリは、各アプリケーション毎に生成されることを特徴とする請求項11記載の記録媒体。 12. The recording medium according to claim 11, wherein the directory is created for each application.  ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録する記録媒体と、
 上記記憶手段から読み出されたファイルとディレクトリとを記憶する記憶手段と、一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理する管理手段とを有する管理部と備え、
 上記管理部の管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、各ファイルをグループ毎に集めて表示することを特徴とするファイル管理システム。
A recording medium for recording a file having a file number, and a directory having a directory entry for each file including a file number and group information;
Storage means for storing the files and directories read from the storage means, and management means for managing the files or directories indicated by the file numbers of the directory entries of the one directory so as to be in a hierarchy below the one directory And a management unit having
A file management system, wherein the management unit of the management unit collects and displays each file for each group based on the group information of the one directory read from the storage unit.
 上記記録媒体は、上記ディレクトリとして、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するとともに上記グループ情報毎にグループ名称を含むグループインフォメーションとを有するディレクトリを記録し、
 上記管理部の記憶手段は、上記記録媒体から読み出されたファイルとディレクトリとを記憶し、上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報及びそれに対応するグループインフォメーション情報に基づいて、上記グループ情報の異なるファイル同士にそのグループ情報に対応する名前を付けて管理すること
 を特徴とする請求項17記載のファイル管理システム。
The recording medium records a directory having, as the directory, a directory entry including a file number and group information for each file and group information including a group name for each group information,
The storage unit of the management unit stores the file and the directory read from the recording medium, and the management unit stores the group information of the one directory read from the storage unit and the group information corresponding thereto. 18. The file management system according to claim 17, wherein files having different group information are managed by giving names corresponding to the group information based on the group information.
 上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、記憶手段に記録されたディレクトリエントリを並べかえる機能を有することを特徴とする請求項17記載のファイル管理システム。 18. The file management system according to claim 17, wherein the management unit has a function of rearranging directory entries recorded in the storage unit based on the group information of the one directory read from the storage unit.  上記管理手段は、上記記憶手段から読み出した上記一のディレクトリのグループ情報に基づいて、グループ毎に擬似ディレクトリを生成し、各ファイルを上記擬似ディレクトリに属するように分類して表示することを特徴とする請求項17記載のファイル管理システム。 The management unit generates a pseudo directory for each group based on the group information of the one directory read from the storage unit, and classifies and displays each file as belonging to the pseudo directory. The file management system according to claim 17, wherein  上記ディレクトリは、各アプリケーション毎に生成されることを特徴とする請求項17記載のファイル管理システム。 18. The file management system according to claim 17, wherein the directory is created for each application.  ファイル番号を有するファイルと、ファイル番号とグループ情報とからなるディレクトリエントリをファイル毎に有するディレクトリとを記録媒体に記録し、
 上記記録媒体から上記ファイルと上記ディレクトリとを読み出し、
 読み出されたファイルとディレクトリとを記憶し、
 記憶された一のディレクトリのディレクトリエントリのファイル番号が示すファイル又はディレクトリを上記一のディレクトリの下の階層になるように管理し、
 上記一のディレクトリのグループ情報に基づいて、各ファイルまたはディレクトリをグループ毎に集めて表示することを特徴とするファイル管理方法。
Recording a file having a file number and a directory having a directory entry for each file including a file number and group information on a recording medium,
Reading the file and the directory from the recording medium,
Memorize the read file and directory,
Manage the file or directory indicated by the file number of the directory entry of the stored one directory so as to be in a hierarchy below the one directory,
A file management method comprising: collecting and displaying each file or directory for each group based on the group information of the one directory.
 上記記録媒体は、上記ディレクトリとして、ファイル番号とグループ情報とからなるディレクトリエントリを有するとともに上記グループ情報毎にグループ名称を含むグループインフォメーションとを有するディレクトリを記録し、
 上記記録媒体からファイルとディレクトリとを読み出し、
 読み出されたファイルとディレクトリとを記憶し、
 読み出した上記一のディレクトリのグループ情報及びそれに対応するグループインフォメーション情報に基づいて、上記グループ情報の異なるファイル同士にそのグループ情報に対応する名前を付けて管理することを特徴とする請求項22記載のファイル管理方法。
The recording medium, as the directory, has a directory entry including a file number and group information, and records a directory having group information including a group name for each group information,
Read files and directories from the recording medium,
Memorize the read file and directory,
23. The file management system according to claim 22, wherein, based on the read group information of the one directory and the corresponding group information information, files having different group information are managed by giving names corresponding to the group information. File management method.
 上記読み出した上記一のディレクトリのグループ情報に基づいて、記録されたディレクトリエントリを並べかえる機能を有することを特徴とする請求項22記載のファイル管理方法。 23. The file management method according to claim 22, further comprising a function of rearranging recorded directory entries based on the read group information of the one directory.  上記読み出した上記一のディレクトリのグループ情報に基づいて、グループ毎に擬似ディレクトリを生成し、各ファイルを上記擬似ディレクトリに属するように分類して表示することを特徴とする請求項22記載のファイル管理方法。 23. The file management according to claim 22, wherein a pseudo directory is generated for each group based on the read group information of the one directory, and each file is classified and displayed as belonging to the pseudo directory. Method.  上記ディレクトリは、各アプリケーション毎に生成されることを特徴とする請求項22記載のファイル管理方法。
The file management method according to claim 22, wherein the directory is created for each application.
JP2003277831A 2003-07-22 2003-07-22 File management apparatus, file management method, and file management system Expired - Fee Related JP4003709B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003277831A JP4003709B2 (en) 2003-07-22 2003-07-22 File management apparatus, file management method, and file management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003277831A JP4003709B2 (en) 2003-07-22 2003-07-22 File management apparatus, file management method, and file management system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP28236197A Division JP3620241B2 (en) 1997-10-15 1997-10-15 File management apparatus, file management method, recording medium, and file management system

Publications (2)

Publication Number Publication Date
JP2004005725A true JP2004005725A (en) 2004-01-08
JP4003709B2 JP4003709B2 (en) 2007-11-07

Family

ID=30438663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003277831A Expired - Fee Related JP4003709B2 (en) 2003-07-22 2003-07-22 File management apparatus, file management method, and file management system

Country Status (1)

Country Link
JP (1) JP4003709B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156680A (en) * 2005-12-02 2007-06-21 Konica Minolta Holdings Inc File management device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156680A (en) * 2005-12-02 2007-06-21 Konica Minolta Holdings Inc File management device

Also Published As

Publication number Publication date
JP4003709B2 (en) 2007-11-07

Similar Documents

Publication Publication Date Title
KR101091311B1 (en) Memory Device and Recording/Reproducing Apparatus Using the Same
JP3072722B2 (en) Data management device and data management method using flash memory and storage medium using flash memory
JP4076078B2 (en) File management method
JP3938594B2 (en) File name generator
US6278678B1 (en) Editing apparatus, editing method, and recording medium
US8972426B2 (en) Storage device presenting to hosts only files compatible with a defined host capability
JP2004280752A (en) Date storage device, management information updating method for data storage device, and computer program
CN100470660C (en) Method and devices for storing and reading data on a storage medium and storage medium
JP2009199625A (en) Memory card, and method for controlling memory card and method for controlling nonvolatile semiconductor memory
JPH08138019A (en) Memory card and its recording,reproducing and erasing method
JP2006040264A (en) Control method of memory card, and control method of nonvolatile semiconductor memory
JP5558093B2 (en) Semiconductor device and memory system
JP3620241B2 (en) File management apparatus, file management method, recording medium, and file management system
JP4003709B2 (en) File management apparatus, file management method, and file management system
JPH11120044A (en) Data processor, data processing method, data processing system and recording medium
JP2001325134A (en) Directory setting method and recorder
JP2001110169A (en) Data control method
JP3624647B2 (en) Storage device, data management device, data management system, data management method, file management device, recording medium, and file management system
JP4055712B2 (en) Data management apparatus, data management method, and data management system
KR100662389B1 (en) Method for managing storage information, and apparatus for the same
JP2006178633A (en) Information processor, information processing method, and program
JP4200362B2 (en) Recording medium recording control method, recording control apparatus, and electronic apparatus
JP3531438B2 (en) Data management device, data management method, data management system, and external storage device
JP4403338B2 (en) Information processing apparatus and information processing method
JP2007018528A (en) Memory device, file management method, and recording and reproducing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070501

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070702

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070813

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100831

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees