|
tinyhttp
|
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 StrView & | 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 |
| Str | name_buffer = Str(40) |
| Str | root_url = Str(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