Patent ID: 7089267

Claim:
A file management method having a first processing mode wherein upon occurrence of a write error for a file data to be written on a recording medium, replacement processing to write the data in another write area is carried out, and having a second processing mode wherein upon occurrence of a write error for a file data to be written on the recording medium, the replacement processing to write the data in another write area is not carried out, said recording medium storing file type information, said method includes the steps of: reading a file type information associated with a file to be processed from the recording medium, the file type information being used for identifying a processing mode between said first processing mode and said second processing mode as file management information associated with said file; converting said file type information indicative of said first processing mode to a file type information indicative of said second processing mode; writing the converted file type information in the recording medium as the file management information associated with said file to be processed; and wherein said replacement processing is carried out on an ECC block basis, said block including N recording units termed as sectors, wherein N is a positive integer, and further comprising steps of: judging whether or not in all the N sectors of said ECC blocks that store data belonging to the file, are occupied; and when judging that the data is not stored in the all N sectors of the ECC blocks, registering in said file management information remaining sector in which the data of the file to be processed is not stored as a stuffing.