avsa242 / sdfat-spin

FAT-fs on SD implementation for the P8X32A/Propeller, P2X8C4M64P/Propeller 2
Other
0 stars 0 forks source link

Add chattr() or similar #30

Open avsa242 opened 6 months ago

avsa242 commented 6 months ago

When calling fopen(), the write protect bit is now honored if trying to open the file for writing. Before, to change a file's attributes, it could be opened, then the fatfs layer's fset_attrs() called to modify the directory entry cached in RAM's attributes, then written back to disk, but this won't be possible now.