Patent ID: 7320012

Claim:
A file management method, which is Implemented in a computer system, having a personal computer (PC) data processing mode and an audio/video (AV) data processing mode, said method comprising: in the PC data processing mode, wherein upon occurrence of a write error for a file data to be written on a recording medium, performing replacement processing to write the data in another write area; in the AV data processing mode, wherein upon occurrence of a write error for a file data to be written on the recording medium, continuing a writing operation to the write area regardless of the write error, wherein said recording medium stores processing mode identification information; reading a processing mode identification information associated with a file to be processed from the recording medium, wherein the processing mode identification information identifies a processing mode distinguishing between the PC data processing mode and the AV data processing mode; converting said processing mode identification information indicative of said PC data processing mode to a processing mode identification information indicative of said AV data processing mode; writing the converted processing mode identification information in the recording medium as file management information associated with said file to be processed; and outputting data regarding information written in the recording medium, wherein said replacement processing is carried out on an error correction code ECC block basis, said block including N recording units termed as sectors, wherein N is a positive integer, and wherein said method further comprises steps of: Judging whether or not 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 all the N sectors of the ECC blocks, registering in said file management Information associated with an unoccupied remaining sector with data processed as a stuffing.