SD card file rename?
Rayman
Posts: 14,793
Anybody figured out how to rename a FAT16 file using fsrw or Femtofsrw?
It would be very convenient to have this ability right now for me...
It would be very convenient to have this ability right now for me...
Comments
First you have to make sure there isn't a file already with the new name, then you have to
open the file under the old name, change the directory entry, and write it back. It's not too
different from deleting a file, but somebody has to do the work.
First copy the file to the new filename, then delete the old file.
IIRC, there is an example of copy & delete in Femto.
OBC
EDIT: yup thought I saw it in there... These could be adapted readily..
Copy
Delete
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Just getting started with Propeller?
Propeller Cookbook
PropDOS
Post Edited (Oldbitcollector) : 12/1/2007 5:39:21 PM GMT
Mike: Is this what you are saying?
That's essentially what I'm saying. It's just that you have to do it properly with the right error checking.