JP4982990B2 - Copy apparatus and method - Google Patents

Copy apparatus and method Download PDF

Info

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
Application number
JP2005283818A
Other languages
Japanese (ja)
Other versions
JP2007094792A (en
Inventor
春俊 和田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005283818A priority Critical patent/JP4982990B2/en
Publication of JP2007094792A publication Critical patent/JP2007094792A/en
Application granted granted Critical
Publication of JP4982990B2 publication Critical patent/JP4982990B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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には、ハードディスク装置に記憶されているすべての情報が補助記憶装置にコピーされている。
特開2001−14198号公報
2. Description of the Related Art Conventionally, a technique for copying all files and directories stored in a certain storage medium to another storage medium is known. For example, in Patent Document 1, all information stored in a hard disk device is copied to an auxiliary storage device.
Japanese Patent Laid-Open No. 2001-14198

ここで、特許文献1の技術では、ハードディスク装置にどのような情報が記憶されていようとも、すべての情報が補助記憶装置にコピーされている。つまり、ハードディスク装置に記憶されているファイルなどを選択的にコピーすることはできない。   Here, in the technique of Patent Document 1, all information is copied to the auxiliary storage device no matter what information is stored in the hard disk device. In other words, files stored in the hard disk device cannot be selectively copied.

また、ファイルなどを選択的にコピーする場合には、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 multifunction device 1 executes a predetermined program to control the entire multifunction device 1, a ROM 102 storing a program executed by the CPU 101, a RAM 103 used as a temporary storage area, a print A printing mechanism 150 that performs printing, a printing control unit 104 that controls the printing mechanism 150 to execute printing, a scanning mechanism 160 that reads an image, and a reading control unit 105 that controls the scanning mechanism 160 to read an image. A memory card connector 107 to / from which a predetermined memory card 8 is attached / detached, a memory card control unit 106 for controlling reading / writing with respect to the memory card 8, a liquid crystal display (LCD) 109 and an operation panel 110 for a user interface, Display control unit 10 for controlling the liquid crystal display 109 Comprising the a USB interface for communication according to other devices and USB (Universal Serial Bus), and a USB host controller 115 and USB connector 116.

そして、メモリカードコネクタ107には、所定のメモリカード8が着脱可能である。メモリカード8は、例えば、デジタルカメラに装着され、そのデジタルカメラで撮影した画像のデータが格納されているものであってもよい。   A predetermined memory card 8 can be attached to and detached from the memory card connector 107. For example, the memory card 8 may be a card that is attached to a digital camera and stores data of an image photographed by the digital camera.

USBコネクタ116には、所定のUSBデバイス3が接続可能である。USBデバイス3は、例えば、USBデバイスコントローラが搭載された、所定の記憶媒体4のリーダ・ライタでよい。本実施形態では、所定の記憶媒体4は、例えば、MO(Magneto-Optic)、
Zip、フラッシュメモリなどでよい。
A predetermined USB device 3 can be connected to the USB connector 116. The USB device 3 may be, for example, a reader / writer of a predetermined storage medium 4 on which a USB device controller is mounted. In the present embodiment, the predetermined storage medium 4 is, for example, an MO (Magneto-Optic),
Zip, flash memory or the like may be used.

本実施形態に係る複合機1は、メモリカード8に記憶されている画像データをメモリカード制御部106が読み込み、印刷機構150を用いて印刷することができる。また、スキャン機構160が読み取った画像データも、印刷機構150で印刷することができる。   In the MFP 1 according to the present embodiment, the memory card control unit 106 can read the image data stored in the memory card 8 and print it using the printing mechanism 150. Further, the image data read by the scanning mechanism 160 can also be printed by the printing mechanism 150.

さらに、複合機1は、メモリカード8から読み取った画像データ及びスキャン機構160が読み取った画像データを、USBインタフェース115,116及びUSBデバイス3を介して、記憶媒体4に記憶させることができる。   Further, the multifunction device 1 can store the image data read from the memory card 8 and the image data read by the scan mechanism 160 in the storage medium 4 via the USB interfaces 115 and 116 and the USB device 3.

特に、本実施形態では、メモリカード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, root directory information 310 is stored. The root directory information 310 stores management information 311 for subdirectories generated in the root directory and management information 311 for files stored in the root directory.

ここで、管理情報311には、ファイルまたはサブディレクトリの名前、拡張子、属性、記録時刻、及びサブディレクトリまたはファイル本体のデータが記憶されている先頭クラスタ番号などが含まれる。   Here, the management information 311 includes the name of the file or subdirectory, the extension, the attribute, the recording time, and the top cluster number in which the data of the subdirectory or file body is stored.

データ領域220には、各サブディレクトリのサブディレクトリ情報320及びファイル本体情報330が格納されている。サブディレクトリ情報320には、自ディレクトリ情報321、親ディレクトリ情報322及び自ディレクトリに生成されているサブディレクトリの管理情報323及び自ディレクトリに格納されているファイルの管理情報323が格納されている。なお、以下の説明において、サブディレクトリを単に「ディレクトリ」と呼ぶ場合がある。   The data area 220 stores subdirectory information 320 and file body information 330 of each subdirectory. The subdirectory information 320 stores own directory information 321, parent directory information 322, subdirectory management information 323 generated in the own directory, and file management information 323 stored in the own directory. In the following description, the subdirectory may be simply referred to as “directory”.

次に、上述の複合機1が、メモリカード8から記憶媒体4へ所定のファイルをバックアップするときの処理手順について、図4〜図6を用いて説明する。本実施形態では、メモリカード8に格納されている全データを記憶媒体4へバックアップするよう、ユーザから指示を受けたときに、隠し属性及びシステム属性のディレクトリ及びファイルをバックアップ対象外とし、それ以外のディレクトリ及びファイルのバックアップを行う。   Next, a processing procedure when the above-described multifunction device 1 backs up a predetermined file from the memory card 8 to the storage medium 4 will be described with reference to FIGS. In this embodiment, when receiving an instruction from the user to back up all data stored in the memory card 8 to the storage medium 4, the directory and file of the hidden attribute and the system attribute are excluded from the backup target. Backup of directories and files.

まず、図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 root directory information 310 and the subdirectory information 320 stored in the memory card 8 in the backup process described below, and is realized on the RAM 103, for example.

検索リスト500は、同図に示すように、ルートディレクトリ情報310を格納するルートディレクトリ領域510と、メモリカード8のデータ領域220に格納されているサブディレクトリ情報320を格納するデータ領域520とに分かれている。データ領域220に格納されているサブディレクトリ情報320の全容量がデータ領域520全体の容量を超えるときは、データ領域520はサイクリックに利用される。   The search list 500 is divided into a root directory area 510 for storing the root directory information 310 and a data area 520 for storing the subdirectory information 320 stored in the data area 220 of the memory card 8 as shown in FIG. ing. When the total capacity of the subdirectory information 320 stored in the data area 220 exceeds the total capacity of the data area 520, the data area 520 is used cyclically.

ルートディレクトリ領域510及びデータ領域520は、いずれも、管理情報311、323を格納する領域512,522と、それぞれの管理情報311、323が格納されていたメモリカード8上のクラスタ番号を格納する領域511、521とを有する。   The root directory area 510 and the data area 520 are both areas 512 and 522 for storing the management information 311 and 323, and areas for storing the cluster numbers on the memory card 8 in which the management information 311 and 323 are stored. 511, 521.

また、この検索リスト500は、検索ポインタ600によって、現在処理対象となっている領域512,522が指し示されている。つまり、検索ポインタ600は、処理対象となっている領域512,522のクラスタ番号及びそのクラスタ内で何番目の領域かを保持している。   Further, in the search list 500, areas 512 and 522 that are currently processed are indicated by a search pointer 600. That is, the search pointer 600 holds the cluster numbers of the areas 512 and 522 to be processed and the number of the area in the cluster.

図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 multi-function device 1 reads the root directory information 310 of the memory card 8 attached to the memory card connector 107 and stores it in the root directory area 510 of the search list 500 (S101).

次に、検索ポインタ600をルートディレクトリ領域510の先頭にセットする(S102)。つまり、このときの検索ポインタ600は、クラスタ番号「00」=ルートディレクトリ領域の1番目の領域を指している。   Next, the search pointer 600 is set at the head of the root directory area 510 (S102). That is, the search pointer 600 at this time points to the first area of the cluster number “00” = root directory area.

ここで、CPU101は、検索ポインタ600が指している領域を読み出して(S103)、ここにいずれかの管理情報が格納されているか否かを判定する(S104)。そして、読み出した領域に管理情報が格納されていたならば(S104:Yes)、その管理情報に基づいて、その管理情報に係るディレクトリまたはファイルが保存対象であるか否かを判定する(S201)。   Here, the CPU 101 reads the area pointed to by the search pointer 600 (S103), and determines whether any management information is stored (S104). If the management information is stored in the read area (S104: Yes), it is determined based on the management information whether the directory or file related to the management information is a storage target (S201). .

本実施形態では、ディレクトリまたはファイルが保存対象であるか否かを、管理情報に含まれる属性情報に基づいて判断する。つまり、ディレクトリまたはファイルの属性が隠し属性またはシステム属性であるときは、そのディレクトリまたはファイルを保存対象外とし、それ以外の属性の場合に保存対象とする。   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 CPU 101 acquires the head sector number included in the management information. Then, the management information 323 of the subdirectory information 320 stored in the sector number area is additionally registered in the data area 520 of the search list 500 (S211).

さらに、CPU101は、対象となっているディレクトリの管理情報に基づいて、このサブディレクトリを記憶媒体4に生成する(S212)。これにより、バックアップ対象となるディレクトリが記憶媒体4に生成される。なお、このとき、ロングファイル名が待避されていれば、この待避されたロングファイル名もコピーする。   Further, the CPU 101 generates this subdirectory in the storage medium 4 based on the management information of the target directory (S212). As a result, a directory to be backed up is generated in the storage medium 4. At this time, if the long file name is saved, the saved long file name is also copied.

ここで、検索ポインタ600の内容をスタックに待避して、ステップS211で検索リスト500に追加した管理情報323の先頭へ検索ポインタ600を移動させて、ステップS103へ戻る(S213)。   Here, the contents of the search pointer 600 are saved in the stack, the search pointer 600 is moved to the head of the management information 323 added to the search list 500 in step S211, and the process returns to step S103 (S213).

ステップ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 CPU 101 specifies the position of the file body information 330 on the memory card 8 based on the head cluster number included in the management information, and copies it to the storage medium 4. At this time, if the long file name is saved, the saved long file name is also copied.

そして、CPU101は、検索ポインタ600を次の領域へ移動させて、ステップS103へ戻る(S205)。   Then, the CPU 101 moves the search pointer 600 to the next area and returns to step S103 (S205).

ここで、図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 current search pointer 600 read in step S103 (S104: No), whether the search pointer 600 points to the root directory area 510 or not. Is determined (S105).

ここで、ルートディレクトリ領域510以外を指しているときは(S104:No)、すなわち、この直前の処理では、データ領域520に格納されているサブディレクトリ情報320を検索しており、そのサブディレクトリに関する処理が終了したことになる。そこで、一段上位の階層のディレクトリへ戻って処理を継続するために、スタックに待避されている検索ポインタ600の情報をポップして、ステップS103へ戻る(S106)。   Here, when a point other than the root directory area 510 is pointed (S104: No), that is, in the process immediately before this, the subdirectory information 320 stored in the data area 520 is searched, and the subdirectory is related. The process is complete. Therefore, in order to return to the directory one level higher and continue the processing, the information of the search pointer 600 saved in the stack is popped and the process returns to step S103 (S106).

一方、検索ポインタ600がルートディレクトリ領域510内を指しているときは(S105Yes)、すべてのサブディレクトリの検索が終了し、且つ、ルートディレクトリの管理情報についてもすべて処理を終了したことになるので、処理を終了する。   On the other hand, when the search pointer 600 points in the root directory area 510 (S105 Yes), the search of all the subdirectories is completed, and the processing for all the management information of the root directory is also completed. The process ends.

以上説明した処理によれば、ディレクトリ及びファイル間の階層関係を示す情報及び属性情報などを含む管理情報を検索リストに取得し、この検索リストを用いて個々のディレクトリ及びファイルについて、順にバックアップ対象か否かの判断を行っている。この結果、すべてのディレクトリ及びファイルについて、重複及び漏れなくバックアップ対象か否かの判断を行うことができる。   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 shows a configuration of a multifunction peripheral according to an embodiment of the present invention. メモリカード8に記憶されている階層的なディレクトリ構造の一例を示す。An example of a hierarchical directory structure stored in the memory card 8 is shown. 図2のディレクトリ構造がFATに従って記憶されているときのデータ構造を示す。The data structure when the directory structure of FIG. 2 is stored according to FAT is shown. 所定のファイルをバックアップするときの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence when backing up a predetermined file. 所定のファイルをバックアップするときの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence when backing up a predetermined file. 検索リストの一例を示す。An example of a search list is shown.

符号の説明Explanation of symbols

1…複合機、3…USBデバイス、4…記憶媒体、8…メモリカード、101…CPU、102…ROM、103…RAM、150…印刷機構、160…スキャン機構、500…検索リスト、510…ルートディレクトリ領域、520…データ領域、600…検索ポインタ。 DESCRIPTION OF SYMBOLS 1 ... MFP, 3 ... USB device, 4 ... Storage medium, 8 ... Memory card, 101 ... CPU, 102 ... ROM, 103 ... RAM, 150 ... Printing mechanism, 160 ... Scan mechanism, 500 ... Search list, 510 ... Route Directory area, 520... Data area, 600... Search pointer.

Claims (4)

階層的なディレクトリ構造で複数のファイルが記憶されている第1の記憶媒体から、対象となるディレクトリ及びファイルを第2の記憶媒体にコピーする装置であって、
前記第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の記憶媒体から、対象となるディレクトリ及びファイルを第2の記憶媒体にコピーするコピー装置によって実行される方法であって、
前記第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の記憶媒体から、対象となるディレクトリ及びファイルを第2の記憶媒体にコピーするためのコンピュータプログラムであって、
コンピュータに実行されると、
前記第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.
JP2005283818A 2005-09-29 2005-09-29 Copy apparatus and method Expired - Fee Related JP4982990B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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