Patent ID: 7505165

Claim:
An image recording apparatus which stores an image file into a directory to which a circularly successive identification number is assigned, comprising: a first eraser for erasing an oldest directory when a first condition is satisfied; a creator for creating a new directory to which an identification number succeeding to the identification number of a latest directory is assigned when a second condition is satisfied; a second eraser for erasing an arbitrary directory; a first detector for detecting remaining directories when an erasure is performed by said second eraser; an assigner for assigning circularly successive identification numbers to the remaining directories in order of oldest directory to most recently created directory, respectively; and a second detector for detecting a second total number of the image files stored in a noted directory, wherein the first condition includes a condition that the second total number reaches a first threshold value, and the second condition includes a condition that the second total number reaches a second threshold larger than the first threshold value, wherein the assigner assigns the circularly successive identification numbers to each of the remaining directories.