JP4982990B2 - Copy apparatus and method - Google Patents
Copy apparatus and method Download PDFInfo
- Publication number
- JP4982990B2 JP4982990B2 JP2005283818A JP2005283818A JP4982990B2 JP 4982990 B2 JP4982990 B2 JP 4982990B2 JP 2005283818 A JP2005283818 A JP 2005283818A JP 2005283818 A JP2005283818 A JP 2005283818A JP 4982990 B2 JP4982990 B2 JP 4982990B2
- Authority
- JP
- Japan
- Prior art keywords
- directory
- file
- management information
- storage medium
- search list
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は、記憶媒体に格納されているファイル及びディレクトリを選択的に他の記憶媒体にコピーする技術に関する。 The present invention relates to a technique for selectively copying files and directories stored in a storage medium to another storage medium.
従来、ある記憶媒体に格納されているファイル及びディレクトリのすべてを他の記憶媒体にコピーするための技術が知られている。例えば特許文献1には、ハードディスク装置に記憶されているすべての情報が補助記憶装置にコピーされている。
ここで、特許文献1の技術では、ハードディスク装置にどのような情報が記憶されていようとも、すべての情報が補助記憶装置にコピーされている。つまり、ハードディスク装置に記憶されているファイルなどを選択的にコピーすることはできない。
Here, in the technique of
また、ファイルなどを選択的にコピーする場合には、OSなどが提供するAPIを利用すれば便利である。しかし、その一方で、APIを利用すればオーバーヘッドが大きくなり、処理に時間がかかってしまうという問題がある。 In addition, when a file or the like is selectively copied, it is convenient to use an API provided by the OS or the like. On the other hand, however, there is a problem that if API is used, overhead increases and processing takes time.
そこで、本発明の目的は、記憶媒体に格納されているファイル及びディレクトリを他の記憶媒体へ、選択的に高速でコピーする技術を提供することである。 Accordingly, an object of the present invention is to provide a technique for selectively copying files and directories stored in a storage medium to another storage medium at high speed.
本発明の一実施態様に従うコピー装置は、階層的なディレクトリ構造で複数のファイルが記憶されている第1の記憶媒体から、対象となるディレクトリ及びファイルを第2の記憶媒体にコピーするものである。このコピー装置は、前記第1の記憶媒体に格納されているディレクトリ及びファイルのそれぞれについての階層情報及び属性情報を含む、各ディレクトリ及びファイル別の管理情報を含む検索リストのための検索リスト領域と、前記第1の記憶媒体から、前記各ディレクトリ及びファイル別の管理情報を読み出して、前記検索リスト領域に格納する検索リスト生成手段と、前記検索リストを参照し、前記第1の記憶媒体に記憶されているすべてのファイル及びすべてのディレクトリについて、各ディレクトリまたはファイルの属性情報に基づいて、それぞれのディレクトリまたはファイルがコピー対象か否かを判定する手段と、前記判定手段によりコピー対象のディレクトリと判定された場合は、当該ディレクトリの管理情報に基づいて、前記第2の記憶媒体にディレクトリを生成する手段と、前記判定手段によりコピー対象のファイルと判定された場合は、当該ファイルの管理情報に基づいて、前記第2の記憶媒体にファイル本体情報をコピーする手段と、を備える。 A copying apparatus according to an embodiment of the present invention copies a target directory and file from a first storage medium storing a plurality of files in a hierarchical directory structure to a second storage medium. . The copy apparatus includes a search list area for a search list including management information for each directory and file, including hierarchy information and attribute information for each of the directories and files stored in the first storage medium. The management information for each directory and file is read from the first storage medium, stored in the search list area, and stored in the first storage medium with reference to the search list. Means for determining whether each directory or file is a copy target based on the attribute information of each directory or file for all the files and directories that have been copied; If this is the case, based on the directory management information, When it is determined that the file is a copy target file by means for generating a directory on the second storage medium and the determination means, the file main body information is copied to the second storage medium based on the management information of the file. Means.
好適な実施形態では、前記検索リスト生成手段による検索リストの生成と並行して、前記判定手段が前記判定を行うようにしてもよい。 In a preferred embodiment, the determination unit may perform the determination in parallel with the generation of the search list by the search list generation unit.
好適な実施形態では、前記検索リスト領域は、ルートディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのルート領域と、いずれかのサブディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのデータ領域とを有し、前記検索リスト生成手段は、前記いずれかのサブディレクトリに生成されているサブディレクトリ及びファイルの管理情報の容量が、前記データ領域の容量を超えるときは、前記データ領域をサイクリックに利用するようにしてもよい。 In a preferred embodiment, the search list area includes a root area for storing management information of subdirectories and files generated in a root directory, and subdirectories and files generated in any of the subdirectories. And the search list generation means has a capacity of management information of the subdirectory and file generated in any one of the subdirectories exceeding the capacity of the data area. In some cases, the data area may be used cyclically.
好適な実施形態では、前記判定手段は、前記ディレクトリまたはファイルの属性が、隠し属性及びシステム属性のいずれでもないときに、コピー対象であると判定するようにしてもよい。 In a preferred embodiment, the determination unit may determine that the directory or file attribute is a copy target when the attribute of the directory or file is neither a hidden attribute nor a system attribute.
以下、本発明の一実施形態に係る複合機について、図面を参照して説明する。 Hereinafter, a multifunction peripheral according to an embodiment of the present invention will be described with reference to the drawings.
図1は、本実施形態に係る、プリンタ及びスキャナの両機能を備えた複合機の構成を示す図である。 FIG. 1 is a diagram showing a configuration of a multifunction machine having both printer and scanner functions according to the present embodiment.
すなわち、複合機1は、所定のプログラムを実行して、複合機1全体を制御するCPU101と、CPU101で実行されるプログラムが記憶されているROM102と、一時記憶領域として使用されるRAM103と、印刷を行う印刷機構150と、印刷機構150を制御して印刷を実行させる印刷制御部104と、画像を読み取るスキャン機構160と、スキャン機構160を制御して画像の読み取りを実行させる読み取り制御部105と、所定のメモリカード8が着脱されるメモリカードコネクタ107と、メモリカード8に対するリード・ライトを制御するメモリカード制御部106と、ユーザインタフェースのための液晶ディスプレイ(LCD)109及び操作パネル110と、液晶ディスプレイ109を制御する表示制御部108と、他の装置とUSB(Universal Serial Bus)に従って通信を行うためUSBインタフェースである、USBホストコントローラ115及びUSBコネクタ116とを備える。
That is, the
そして、メモリカードコネクタ107には、所定のメモリカード8が着脱可能である。メモリカード8は、例えば、デジタルカメラに装着され、そのデジタルカメラで撮影した画像のデータが格納されているものであってもよい。
A predetermined memory card 8 can be attached to and detached from the
USBコネクタ116には、所定のUSBデバイス3が接続可能である。USBデバイス3は、例えば、USBデバイスコントローラが搭載された、所定の記憶媒体4のリーダ・ライタでよい。本実施形態では、所定の記憶媒体4は、例えば、MO(Magneto-Optic)、
Zip、フラッシュメモリなどでよい。
A
Zip, flash memory or the like may be used.
本実施形態に係る複合機1は、メモリカード8に記憶されている画像データをメモリカード制御部106が読み込み、印刷機構150を用いて印刷することができる。また、スキャン機構160が読み取った画像データも、印刷機構150で印刷することができる。
In the
さらに、複合機1は、メモリカード8から読み取った画像データ及びスキャン機構160が読み取った画像データを、USBインタフェース115,116及びUSBデバイス3を介して、記憶媒体4に記憶させることができる。
Further, the
特に、本実施形態では、メモリカード8に記憶されている全画像データを記憶媒体4に高速でバックアップを行う。その際、メモリカード8内に記憶されている全データを記憶媒体4にコピーするのではなく、ユーザに直接は関係のない、隠し属性ファイル及びシステム属性ファイルを除いてコピーする。 In particular, in this embodiment, all image data stored in the memory card 8 is backed up to the storage medium 4 at high speed. At this time, all data stored in the memory card 8 is not copied to the storage medium 4 but is copied except for the hidden attribute file and the system attribute file which are not directly related to the user.
また、以下の説明では、メモリカード8及び記憶媒体4のファイルシステムは、いずれもFAT(File Allocation Tables)が採用されているものを対象として説明する。しかしながら、本発明は、FAT以外のファイルシステムであっても適用可能である。例えば、記憶媒体4がFAT以外のファイルシステムを採用する場合、メモリカード8から読み出したデータを記憶媒体4に書き込む前に適当形式にフォーマット変換を施してやればよい。 Further, in the following description, the file system of the memory card 8 and the storage medium 4 will be described with respect to a case where FAT (File Allocation Tables) is adopted. However, the present invention can be applied to a file system other than FAT. For example, when the storage medium 4 employs a file system other than FAT, format conversion may be performed in an appropriate format before data read from the memory card 8 is written to the storage medium 4.
以下、メモリカード8から記憶媒体4への高速バックアップのための処理について説明する。 Hereinafter, processing for high-speed backup from the memory card 8 to the storage medium 4 will be described.
まず、図2に、メモリカード8に記憶されている階層的なディレクトリ構造の一例を示す。 First, FIG. 2 shows an example of a hierarchical directory structure stored in the memory card 8.
同図に示すように、メモリカード8には、ディレクトリが階層的に設けられているとともに、複数のファイルが格納されている。つまり、ルートディレクトリには、"DCIM"及び"MISC"というサブディレクトリが設けられている。"DCIM"には、さらに"100EP"というサブディレクトリが設けられていて、そこには3つのJPEGファイルが格納されている。また、"MISC"には、一つのファイルが格納されている。 As shown in the figure, the memory card 8 is provided with a hierarchy of directories and stores a plurality of files. That is, subdirectories “DCIM” and “MISC” are provided in the root directory. “DCIM” is further provided with a subdirectory “100EP”, in which three JPEG files are stored. Also, one file is stored in “MISC”.
図3には、図2に示すディレクトリの階層構造が、メモリカード8上にFATに従って記憶されているときのデータ構造を示す。 FIG. 3 shows a data structure when the directory hierarchical structure shown in FIG. 2 is stored on the memory card 8 in accordance with the FAT.
FATでは、まず、記憶領域がルートディレクトリ領域210とデータ領域220とに分けられている。 In the FAT, first, the storage area is divided into a root directory area 210 and a data area 220.
ルートディレクトリ領域210にはルートディレクトリ情報310が格納されている。ルートディレクトリ情報310は、ルートディレクトリに生成されているサブディレクトリの管理情報311及びルートディレクトリに格納されているファイルの管理情報311が格納されている。
In the root directory area 210,
ここで、管理情報311には、ファイルまたはサブディレクトリの名前、拡張子、属性、記録時刻、及びサブディレクトリまたはファイル本体のデータが記憶されている先頭クラスタ番号などが含まれる。
Here, the
データ領域220には、各サブディレクトリのサブディレクトリ情報320及びファイル本体情報330が格納されている。サブディレクトリ情報320には、自ディレクトリ情報321、親ディレクトリ情報322及び自ディレクトリに生成されているサブディレクトリの管理情報323及び自ディレクトリに格納されているファイルの管理情報323が格納されている。なお、以下の説明において、サブディレクトリを単に「ディレクトリ」と呼ぶ場合がある。
The data area 220 stores
次に、上述の複合機1が、メモリカード8から記憶媒体4へ所定のファイルをバックアップするときの処理手順について、図4〜図6を用いて説明する。本実施形態では、メモリカード8に格納されている全データを記憶媒体4へバックアップするよう、ユーザから指示を受けたときに、隠し属性及びシステム属性のディレクトリ及びファイルをバックアップ対象外とし、それ以外のディレクトリ及びファイルのバックアップを行う。
Next, a processing procedure when the above-described
まず、図6に例示する検索リスト500について説明する。 First, the search list 500 illustrated in FIG. 6 will be described.
検索リスト500は、以下に説明するバックアップ処理において、メモリカード8に格納されているルートディレクトリ情報310及びサブディレクトリ情報320を待避する領域であり、例えばRAM103上に実現されている。
The search list 500 is an area for saving the
検索リスト500は、同図に示すように、ルートディレクトリ情報310を格納するルートディレクトリ領域510と、メモリカード8のデータ領域220に格納されているサブディレクトリ情報320を格納するデータ領域520とに分かれている。データ領域220に格納されているサブディレクトリ情報320の全容量がデータ領域520全体の容量を超えるときは、データ領域520はサイクリックに利用される。
The search list 500 is divided into a
ルートディレクトリ領域510及びデータ領域520は、いずれも、管理情報311、323を格納する領域512,522と、それぞれの管理情報311、323が格納されていたメモリカード8上のクラスタ番号を格納する領域511、521とを有する。
The
また、この検索リスト500は、検索ポインタ600によって、現在処理対象となっている領域512,522が指し示されている。つまり、検索ポインタ600は、処理対象となっている領域512,522のクラスタ番号及びそのクラスタ内で何番目の領域かを保持している。
Further, in the search list 500,
図4及び図5は、メモリカード8から記憶媒体4へ、所定のファイルをバックアップするときの処理手順を示すフローチャートである。以下、図6を参照しつつ、図4,5のフローチャートに従って説明する。 4 and 5 are flowcharts showing a processing procedure when a predetermined file is backed up from the memory card 8 to the storage medium 4. Hereinafter, it will be described according to the flowcharts of FIGS. 4 and 5 with reference to FIG.
複合機1は、メモリカードコネクタ107に装着されているメモリカード8のルートディレクトリ情報310を読み出し、検索リスト500のルートディレクトリ領域510へ保存する(S101)。
The
次に、検索ポインタ600をルートディレクトリ領域510の先頭にセットする(S102)。つまり、このときの検索ポインタ600は、クラスタ番号「00」=ルートディレクトリ領域の1番目の領域を指している。
Next, the
ここで、CPU101は、検索ポインタ600が指している領域を読み出して(S103)、ここにいずれかの管理情報が格納されているか否かを判定する(S104)。そして、読み出した領域に管理情報が格納されていたならば(S104:Yes)、その管理情報に基づいて、その管理情報に係るディレクトリまたはファイルが保存対象であるか否かを判定する(S201)。
Here, the
本実施形態では、ディレクトリまたはファイルが保存対象であるか否かを、管理情報に含まれる属性情報に基づいて判断する。つまり、ディレクトリまたはファイルの属性が隠し属性またはシステム属性であるときは、そのディレクトリまたはファイルを保存対象外とし、それ以外の属性の場合に保存対象とする。 In the present embodiment, whether or not a directory or file is a storage target is determined based on attribute information included in the management information. That is, when the attribute of a directory or file is a hidden attribute or a system attribute, the directory or file is excluded from the storage target, and in the case of other attributes, the storage target is included.
ここで判定の対象となっている管理情報に係るファイルまたはディレクトリが保存対象外であるときは(S201:No)、ステップS103へ戻る。 Here, when the file or directory related to the management information to be determined is not a storage target (S201: No), the process returns to step S103.
一方、上記管理情報に係るファイルまたはディレクトリが保存対象であるときは(S201:Yes)、その管理情報がディレクトリのものであるかファイルのものであるかを判定する(S202)。 On the other hand, when the file or directory related to the management information is to be saved (S201: Yes), it is determined whether the management information is a directory or a file (S202).
対象となっている管理情報がディレクトリのものであれば、CPU101はその管理情報に含まれている先頭セクタ番号を取得する。そして、そのセクタ番号の領域に格納されているサブディレクトリ情報320の管理情報323を検索リスト500のデータ領域520へ追加登録する(S211)。
If the target management information is that of a directory, the
さらに、CPU101は、対象となっているディレクトリの管理情報に基づいて、このサブディレクトリを記憶媒体4に生成する(S212)。これにより、バックアップ対象となるディレクトリが記憶媒体4に生成される。なお、このとき、ロングファイル名が待避されていれば、この待避されたロングファイル名もコピーする。
Further, the
ここで、検索ポインタ600の内容をスタックに待避して、ステップS211で検索リスト500に追加した管理情報323の先頭へ検索ポインタ600を移動させて、ステップS103へ戻る(S213)。
Here, the contents of the
ステップS202で、対象となっている管理情報がファイルの管理情報であると判定された場合、その管理情報はロングファイル名を記憶したものであるか否かを判定する(S203)。 If it is determined in step S202 that the target management information is file management information, it is determined whether or not the management information stores a long file name (S203).
そして、その管理情報がロングファイル名を記憶したものであるときは(S203:Yes)、その管理情報をロングファイル名の待避領域に待避する(S206)。 If the management information is a long file name stored (S203: Yes), the management information is saved in the long file name saving area (S206).
一方、対象となっている管理情報がロングファイル名を記憶したものでないときは(S203:No)、そのファイルの管理情報に基づいて、メモリカード8上での階層関係を維持しつつ、記憶媒体4に当該ファイルがコピーされる(S204)。つまり、CPU101は、管理情報に含まれている先頭クラスタ番号に基づいてメモリカード8上のファイル本体情報330の位置を特定し、記憶媒体4にコピーする。なお、このとき、ロングファイル名が待避されていれば、この待避されたロングファイル名もコピーする。
On the other hand, when the target management information does not store the long file name (S203: No), the storage medium is maintained while maintaining the hierarchical relationship on the memory card 8 based on the management information of the file. The file is copied to 4 (S204). That is, the
そして、CPU101は、検索ポインタ600を次の領域へ移動させて、ステップS103へ戻る(S205)。
Then, the
ここで、図4へ戻り、ステップS103読み出された、現在の検索ポインタ600が指す領域に管理情報がないときは(S104:No)、検索ポインタ600がルートディレクトリ領域510内を指しているか否かを判定する(S105)。
Here, returning to FIG. 4, when there is no management information in the area pointed to by the
ここで、ルートディレクトリ領域510以外を指しているときは(S104:No)、すなわち、この直前の処理では、データ領域520に格納されているサブディレクトリ情報320を検索しており、そのサブディレクトリに関する処理が終了したことになる。そこで、一段上位の階層のディレクトリへ戻って処理を継続するために、スタックに待避されている検索ポインタ600の情報をポップして、ステップS103へ戻る(S106)。
Here, when a point other than the
一方、検索ポインタ600がルートディレクトリ領域510内を指しているときは(S105Yes)、すべてのサブディレクトリの検索が終了し、且つ、ルートディレクトリの管理情報についてもすべて処理を終了したことになるので、処理を終了する。
On the other hand, when the
以上説明した処理によれば、ディレクトリ及びファイル間の階層関係を示す情報及び属性情報などを含む管理情報を検索リストに取得し、この検索リストを用いて個々のディレクトリ及びファイルについて、順にバックアップ対象か否かの判断を行っている。この結果、すべてのディレクトリ及びファイルについて、重複及び漏れなくバックアップ対象か否かの判断を行うことができる。 According to the processing described above, management information including information indicating the hierarchical relationship between directories and files and attribute information is acquired in a search list, and each directory and file is sequentially backed up using this search list. Judgment of whether or not. As a result, it is possible to determine whether all directories and files are backup targets without duplication and omission.
上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。 The above-described embodiments of the present invention are examples for explaining the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.
例えば、上述した実施形態では、検索リストを生成しつつ、ディレクトリ及びファイルのコピーを行っていたが、メモリカードの全管理情報を検索リストに登録した後、ディレクトリ及びファイルのコピーを行うようにしてもよい。 For example, in the above-described embodiment, the directory and the file are copied while generating the search list. However, after all the management information of the memory card is registered in the search list, the directory and the file are copied. Also good.
1…複合機、3…USBデバイス、4…記憶媒体、8…メモリカード、101…CPU、102…ROM、103…RAM、150…印刷機構、160…スキャン機構、500…検索リスト、510…ルートディレクトリ領域、520…データ領域、600…検索ポインタ。
DESCRIPTION OF
Claims (4)
前記第1の記憶媒体に格納されているディレクトリ及びファイルのそれぞれについての階層情報及び属性情報を含む、各ディレクトリ及びファイル別の管理情報を含む検索リストのための検索リスト領域と、
前記検索リスト領域の検索リストに含まれている各ディレクトリ及びファイル別の管理情報を参照し、前記第1の記憶媒体に記憶されているディレクトリまたはファイルがコピー対象か否かを判定する手段と、
前記判定手段によりコピー対象のディレクトリと判定された場合は、当該コピー対象のディレクトリに含まれるサブディレクトリ及びファイルの管理情報を前記検索リストに格納する検索リスト生成手段と、
前記コピー対象のディレクトリの管理情報に基づいて、前記第2の記憶媒体にディレクトリを生成する手段と、
前記判定手段によりコピー対象のファイルと判定された場合は、当該コピー対象のファイルの管理情報に基づいて、前記第2の記憶媒体にファイル本体情報をコピーする手段と、を備え、
前記検索リスト領域は、ルートディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのルート領域と、いずれかのサブディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのデータ領域とを有し、
前記検索リスト生成手段は、前記コピー対象のディレクトリに生成されているサブディレクトリ及びファイルの管理情報の容量が、前記データ領域の容量を超えるときは、前記データ領域をサイクリックに利用する
コピー装置。 An apparatus for copying a target directory and file from a first storage medium storing a plurality of files in a hierarchical directory structure to a second storage medium,
A search list area for a search list including management information for each directory and file, including hierarchy information and attribute information for each of the directories and files stored in the first storage medium;
Means for referring to management information for each directory and file included in the search list in the search list area and determining whether the directory or file stored in the first storage medium is a copy target;
A search list generating means for storing, in the search list, management information of subdirectories and files included in the copy target directory when the determination means determines that the directory is a copy target directory;
Means for generating a directory in the second storage medium based on management information of the directory to be copied;
Means for copying the file main body information to the second storage medium based on the management information of the file to be copied when the determining means determines that the file is to be copied ;
The search list area stores a root area for storing subdirectory and file management information generated in the root directory, and a subdirectory and file management information generated in any of the subdirectories. Data area, and
The search list generating means cyclically uses the data area when the capacity of the subdirectory and file management information generated in the directory to be copied exceeds the capacity of the data area. > Copy device.
前記ディレクトリまたはファイルの属性が、隠し属性及びシステム属性のいずれでもないときに、コピー対象であると判定する請求項1に記載のコピー装置。 The determination means includes
The copying apparatus according to claim 1, wherein when the attribute of the directory or file is neither a hidden attribute nor a system attribute, the copying apparatus determines to be a copy target.
前記第1の記憶媒体に格納されているディレクトリ及びファイルのそれぞれについての階層情報及び属性情報を含む、各ディレクトリ及び各ファイル別の管理情報を含む検索リスト領域であって、ルートディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのルート領域と、いずれかのサブディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのデータ領域とを有する前記検索リスト領域から、前記検索リスト領域の検索リストに含まれている各ディレクトリ及びファイル別の管理情報を参照し、前記第1の記憶媒体に記憶されているディレクトリまたはファイルがコピー対象か否かを判定し、
前記判定によりコピー対象のディレクトリと判定された場合、前記コピー対象のディレクトリに生成されているサブディレクトリ及びファイルの管理情報の容量が、前記データ領域の容量を超えるときは、前記データ領域をサイクリックに利用して、当該コピー対象のディレクトリに含まれるサブディレクトリ及びファイルの管理情報を前記検索リストに格納し、
前記コピー対象のディレクトリの属性情報に基づいて、前記第2の記憶媒体にディレクトリを生成し、
前記判定によりコピー対象のファイルと判定された場合は、当該コピー対象のファイルの管理情報に基づいて、前記第2の記憶媒体にファイル本体情報をコピーする方法。 A method executed by a copying apparatus for copying a target directory and file from a first storage medium in which a plurality of files are stored in a hierarchical directory structure to a second storage medium,
A search list area including management information for each directory and each file, including hierarchy information and attribute information for each of the directories and files stored in the first storage medium, and is generated in the root directory From the search list area having a root area for storing management information of subdirectories and files and a data area for storing management information of subdirectories and files generated in any of the subdirectories, Referencing management information for each directory and file included in the search list in the search list area, and determining whether the directory or file stored in the first storage medium is a copy target;
If it is determined by the determination that the directory is a copy target directory, if the capacity of the subdirectory and file management information generated in the copy target directory exceeds the capacity of the data area, the data area is cyclically selected. To store the management information of the subdirectories and files included in the directory to be copied in the search list,
Generating a directory in the second storage medium based on attribute information of the directory to be copied;
A method of copying file main body information to the second storage medium based on management information of the copy target file when it is determined by the determination that the file is a copy target file.
コンピュータに実行されると、
前記第1の記憶媒体に格納されているディレクトリ及びファイルのそれぞれについての階層情報及び属性情報を含む、各ディレクトリ及び各ファイル別の管理情報を含む検索リスト領域であって、ルートディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのルート領域と、いずれかのサブディレクトリに生成されているサブディレクトリ及びファイルの管理情報を格納するためのデータ領域とを有する前記検索リスト領域から、前記検索リスト領域の検索リストに含まれている各ディレクトリ及びファイル別の管理情報を参照し、前記第1の記憶媒体に記憶されているディレクトリまたはファイルがコピー対象か否かを判定し、
前記判定によりコピー対象のディレクトリと判定された場合、前記コピー対象のディレクトリに生成されているサブディレクトリ及びファイルの管理情報の容量が、前記データ領域の容量を超えるときは、前記データ領域をサイクリックに利用して、当該コピー対象のディレクトリに含まれるサブディレクトリ及びファイルの管理情報を前記検索リストに格納し、前記コピー対象のディレクトリの属性情報に基づいて、前記第2の記憶媒体にディレクトリを生成し、
前記判定によりコピー対象のファイルと判定された場合は、当該コピー対象のファイルの管理情報に基づいて、前記第2の記憶媒体にファイル本体情報をコピーする、コンピュータプログラム。 A computer program for copying a target directory and file from a first storage medium storing a plurality of files in a hierarchical directory structure to a second storage medium,
When executed on a computer,
A search list area including management information for each directory and each file, including hierarchy information and attribute information for each of the directories and files stored in the first storage medium, and is generated in the root directory From the search list area having a root area for storing management information of subdirectories and files and a data area for storing management information of subdirectories and files generated in any of the subdirectories, Referencing management information for each directory and file included in the search list in the search list area, and determining whether the directory or file stored in the first storage medium is a copy target;
If it is determined by the determination that the directory is a copy target directory, if the capacity of the subdirectory and file management information generated in the copy target directory exceeds the capacity of the data area, the data area is cyclically selected. using the stores management information of sub directories and files included in the copied directory to the search list, based on the attribute information of the copy target directory, generating a directory in the second storage medium And
A computer program for copying file main body information to the second storage medium based on management information of a file to be copied when it is determined by the determination that the file is to be copied.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005283818A JP4982990B2 (en) | 2005-09-29 | 2005-09-29 | Copy apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005283818A JP4982990B2 (en) | 2005-09-29 | 2005-09-29 | Copy apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007094792A JP2007094792A (en) | 2007-04-12 |
JP4982990B2 true JP4982990B2 (en) | 2012-07-25 |
Family
ID=37980429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005283818A Expired - Fee Related JP4982990B2 (en) | 2005-09-29 | 2005-09-29 | Copy apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4982990B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5940317B2 (en) * | 2012-02-13 | 2016-06-29 | 日置電機株式会社 | Measurement result recording apparatus and measurement result recording method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03125239A (en) * | 1989-10-11 | 1991-05-28 | Hitachi Ltd | File communication device |
JPH05313973A (en) * | 1992-05-14 | 1993-11-26 | Nec Corp | Backup system for external memory device |
JP2850951B2 (en) * | 1996-02-14 | 1999-01-27 | 日本電気株式会社 | Backup method |
JP2000148562A (en) * | 1998-11-18 | 2000-05-30 | Nec Eng Ltd | Data backup method, data backup device utilizing the method and computer readable recording medium recorded with data backup program |
JP4168626B2 (en) * | 2001-12-06 | 2008-10-22 | 株式会社日立製作所 | File migration method between storage devices |
JP2004318810A (en) * | 2003-02-25 | 2004-11-11 | Hitachi Ltd | Data management method and system |
-
2005
- 2005-09-29 JP JP2005283818A patent/JP4982990B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007094792A (en) | 2007-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8422045B2 (en) | Image forming apparatus specifying a file to be printed from files stored in a storage medium | |
US7315391B2 (en) | Managing digital images | |
US20100088594A1 (en) | Thumbnail display method and image forming apparatus | |
JP2008070975A (en) | Data storage device and data storage method | |
KR102288563B1 (en) | Information processing apparatus and method of controlling the same | |
US20090161155A1 (en) | Image output apparatus and image output method | |
US7538898B2 (en) | Printing apparatus, printing control method therefor, and information processing apparatus | |
JPH0325523A (en) | Computer peripheral device | |
JP2008080707A (en) | Image forming apparatus | |
JP2006261889A (en) | Image processing device and image processing method | |
JP2007312225A (en) | Data processing apparatus, and data processing method and data processing program executed by the apparatus | |
CN1992776A (en) | Method and apparatus for managing image files stored in external storage medium | |
JP4982990B2 (en) | Copy apparatus and method | |
US7487324B2 (en) | Computer system | |
US20060182417A1 (en) | Image processor and file data management therein | |
JP6995607B2 (en) | Information processing equipment, control methods and programs for information processing equipment | |
CN100413312C (en) | Image processing apparatus and image processing method | |
JP5132393B2 (en) | Information processing apparatus, information management method, and program | |
JP2011142614A (en) | Image processing apparatus, and control method therefor | |
JP4323995B2 (en) | Data processing apparatus and control method thereof | |
JP2008015563A (en) | Printing control device, printing control method, program and recording medium | |
JP7238087B2 (en) | JOB PROCESSING DEVICE, CONTROL METHOD AND PROGRAM FOR JOB PROCESSING DEVICE | |
JP6070359B2 (en) | Information transmitter | |
JP2007272631A (en) | Data storage management method of document processing system and system thereof | |
JP3972752B2 (en) | Document data generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080902 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110520 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110531 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110801 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111221 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120220 |
|
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: 20120327 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120409 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4982990 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150511 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |