mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
widgets
This commit is contained in:
@@ -118,7 +118,8 @@ const String readFile(const String& filename, size_t max_size) {
|
||||
}
|
||||
|
||||
const String getFileSize(const String filename) {
|
||||
auto file = LittleFS.open(filepath(filename), "r");
|
||||
String filepath(filename);
|
||||
auto file = LittleFS.open(filepath, "r");
|
||||
if (!file) {
|
||||
return "failed";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user