Page 1 of 1

fioRemove

Posted: Sat Jun 18, 2005 7:15 pm
by radad
When I call fioRemove to remove a file it outputs :

remove file mc0:/BEDATA-SYSTEM/KL.DAT
mkdir name mc0:/BEDATA-SYSTEM/KL.DAT

I am not sure where these are being output from.

Anyway why is it creating a directory after it has deleted the file?

Posted: Sat Jun 18, 2005 8:03 pm
by pixel
It's a well known bug in sony's RPC server for fio* functions... They forgot a break in the switch between fioRemove and fioMkdir... So, you have to fioRemove then fioRmdir.

Posted: Sat Jun 18, 2005 9:57 pm
by radad
I suspected that would have been the cause. I guess it can't be fixed then.
Thanks for the info.

Posted: Sat Jun 18, 2005 10:17 pm
by MrHTFord
Pixel gave you an effective work-around.

Posted: Sun Jun 19, 2005 4:19 am
by Drakonite
Is there any reason we haven't made ps2sdk work around this automatically?

Posted: Sun Jun 19, 2005 8:58 am
by pixel
Several answers to that:

-) fioRemove is only a rpc call, which would work with different versions of the same irx, bugged, and non bugged. That's not up to that layer to have that fix

-) the correct layer that should have that workaround would be libc, with a rmdir() function (which would make up the path with the current directory, etc)

-) fileXio removes that bug.