Reading directory from CD
Posted: Wed May 26, 2004 5:15 pm
Howdy ppl.
I'm trying to get a directory listing of the CD/CDR, using libcdvd 1.5:
strcpy(pathname, "/");
num_files = CDVD_GetDir(pathname, NULL, CDVD_GET_FILES_AND_DIRS, TocEntryList,4000, pathname);
num_files is set to the correct number of files in the root dir of the CD, however, when I try to get the actual directory entry names using:
for(i=0; i<num_files; i++)
printf("%s\n", TocEntryList.filename);
the filename is blank !!!
I've been stuck on this for literally months now, also having tried older versions of libcdvd, and the fioDopen() function.
Any help appreciated.
- jum
I'm trying to get a directory listing of the CD/CDR, using libcdvd 1.5:
strcpy(pathname, "/");
num_files = CDVD_GetDir(pathname, NULL, CDVD_GET_FILES_AND_DIRS, TocEntryList,4000, pathname);
num_files is set to the correct number of files in the root dir of the CD, however, when I try to get the actual directory entry names using:
for(i=0; i<num_files; i++)
printf("%s\n", TocEntryList.filename);
the filename is blank !!!
I've been stuck on this for literally months now, also having tried older versions of libcdvd, and the fioDopen() function.
Any help appreciated.
- jum