The file names on an SD can only be 8 characters long. More...
#include <SDFileNameMgr.h>
Public Member Functions | |
SDFileNameMgr (MimeExtension *extensions=nullptr) | |
SDFileNameMgr (SDFileNameMgr &mgr) | |
virtual Str & | getName (const char *originalName, const char *mime="text/html") |
const char * | root () |
void | setRootUrl (const char *root_url) |
Protected Member Functions | |
void | split () |
Protected Attributes | |
MimeResolver | mime_resolver |
StrExt | name_buffer = StrExt(40) |
StrExt | root_url = StrExt(80) |
The file names on an SD can only be 8 characters long.
In order to support longer names we automatically split up the file name into directories and add a file extension to be able to recover the mime type