Github Repo | C Header | C source | JS source |
---|---|---|---|
cesanta/mongoose-os | mgos_file_utils.h | mgos_file_utils.c |
bool mgos_file_copy(const char *from, const char *to);
Copy a file
bool mgos_file_digest(const char *fname, mbedtls_md_type_t dt, uint8_t *digest);
Compute file's digest. *digest must have enough space for the digest type.
bool mgos_file_copy_if_different(const char *from, const char *to);
edit this docCopy the file if target does not exist or is different.