I'm using the usb_mass example, the moduels are said to be correctly loaded, but...
the function:
listDirectory("/");
Code: Select all
void listDirectory(char* path) {
	int ret;
	fat_dir_record record;
	int counter = 0;
	
	TWIN_PRINTF("DIRECTORY LIST path=%s \n", path);
	TWIN_PRINTF("------------------------------------ \n");
        /* list the root directory */
	ret = usb_mass_getFirstDirentry(path, &record);
	while (ret > 0 ) {
		counter++;
		listDirRecord(&record);
		ret = usb_mass_getNextDirentry(&record);
	}
	if (counter == 0) {
                TWIN_PRINTF("no files in root directory ? \n");
	}
}
I've tried with "/", "mass:/", "mass0:/", "mass://" but always the same error...
any help ?
Hint: I'm using the pink slim PS2, I'm booting with Swap magic, and I'm running the mass_example.elf from the same usb stick I'm triying to read thre directories from.

