Can't rename .pdi files

I am trying to rename a generated .pdi file and have tried this from both lua and C. I know for a fact the file exists at the path as well, and have tried renaming other files which works. But for .pdi files, it errors out in lua (no detail) and when attempting it in C, I get this error: uC-FS error: 0715. It should be noted that the file is created from the C side first, using the kFileReadData|kFileWrite permissions.

Any help?

After posting this I realized... I never called close on the file! So, if anyone else has experienced this.. make sure you call close first!

2 Likes