Filesystem library designed for flash devices

Dependents:   flash-fs-example Dragonfly_Filesystem_Example STM32F407VET6_SPIFlash Dragonfly_Filesystem_Example_mbed_5

Revision:
3:9adcf49bb77d
Parent:
2:de478b250060
--- a/spiffs.h	Mon Dec 29 14:10:45 2014 -0600
+++ b/spiffs.h	Fri Jun 26 14:31:42 2020 -0500
@@ -185,7 +185,7 @@
   u32_t fd_count;
 
   // last error
-  s32_t errno;
+  s32_t err_code;
 
   // current number of free blocks
   u32_t free_blocks;
@@ -322,6 +322,14 @@
 s32_t SPIFFS_remove(spiffs *fs, const char *path);
 
 /**
+ * Removes a file by path
+ * @param fs            the file system struct
+ * @param path          the path of the file to move
+ * @param new_path          the path of the file to move
+ */
+s32_t SPIFFS_move(spiffs *fs, const char *path, const char *new_path);
+
+/**
  * Removes a file by filehandle
  * @param fs            the file system struct
  * @param fh            the filehandle of the file to remove