|
|
@ -315,7 +315,7 @@ void SPIFFS_unmount(spiffs *fs); |
|
|
|
* @param path the path of the new file |
|
|
|
* @param mode ignored, for posix compliance |
|
|
|
*/ |
|
|
|
s32_t SPIFFS_creat(spiffs *fs, char *path, spiffs_mode mode); |
|
|
|
s32_t SPIFFS_creat(spiffs *fs, const char *path, spiffs_mode mode); |
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens/creates a file. |
|
|
@ -326,7 +326,7 @@ s32_t SPIFFS_creat(spiffs *fs, char *path, spiffs_mode mode); |
|
|
|
* SPIFFS_WR_ONLY, SPIFFS_RDWR, SPIFFS_DIRECT |
|
|
|
* @param mode ignored, for posix compliance |
|
|
|
*/ |
|
|
|
spiffs_file SPIFFS_open(spiffs *fs, char *path, spiffs_flags flags, spiffs_mode mode); |
|
|
|
spiffs_file SPIFFS_open(spiffs *fs, const char *path, spiffs_flags flags, spiffs_mode mode); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
@ -381,7 +381,7 @@ s32_t SPIFFS_lseek(spiffs *fs, spiffs_file fh, s32_t offs, int whence); |
|
|
|
* @param fs the file system struct |
|
|
|
* @param path the path of the file to remove |
|
|
|
*/ |
|
|
|
s32_t SPIFFS_remove(spiffs *fs, char *path); |
|
|
|
s32_t SPIFFS_remove(spiffs *fs, const char *path); |
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes a file by filehandle |
|
|
@ -396,7 +396,7 @@ s32_t SPIFFS_fremove(spiffs *fs, spiffs_file fh); |
|
|
|
* @param path the path of the file to stat |
|
|
|
* @param s the stat struct to populate |
|
|
|
*/ |
|
|
|
s32_t SPIFFS_stat(spiffs *fs, char *path, spiffs_stat *s); |
|
|
|
s32_t SPIFFS_stat(spiffs *fs, const char *path, spiffs_stat *s); |
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets file status by filehandle |
|
|
@ -426,7 +426,7 @@ s32_t SPIFFS_close(spiffs *fs, spiffs_file fh); |
|
|
|
* @param old path of file to rename |
|
|
|
* @param newPath new path of file |
|
|
|
*/ |
|
|
|
s32_t SPIFFS_rename(spiffs *fs, char *old, char *newPath); |
|
|
|
s32_t SPIFFS_rename(spiffs *fs, const char *old, const char *newPath); |
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns last error of last file operation. |
|
|
@ -449,7 +449,7 @@ void SPIFFS_clearerr(spiffs *fs); |
|
|
|
* @param name the name of the directory |
|
|
|
* @param d pointer the directory stream to be populated |
|
|
|
*/ |
|
|
|
spiffs_DIR *SPIFFS_opendir(spiffs *fs, char *name, spiffs_DIR *d); |
|
|
|
spiffs_DIR *SPIFFS_opendir(spiffs *fs, const char *name, spiffs_DIR *d); |
|
|
|
|
|
|
|
/**
|
|
|
|
* Closes a directory stream |
|
|
|