mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
рабочая версия для 8266 и для 32 на последнем ядре
This commit is contained in:
@@ -240,7 +240,7 @@ String getFilesList8266(String& directory) {
|
|||||||
auto dir = FileFS.openDir(directory);
|
auto dir = FileFS.openDir(directory);
|
||||||
while (dir.next()) {
|
while (dir.next()) {
|
||||||
String fname = dir.fileName();
|
String fname = dir.fileName();
|
||||||
if (fname != "") filesList += directory + "/" + fname + ";";
|
if (fname != "") filesList += "/" + fname + ";";
|
||||||
}
|
}
|
||||||
return filesList;
|
return filesList;
|
||||||
}
|
}
|
||||||
@@ -250,9 +250,6 @@ String getFilesList8266(String& directory) {
|
|||||||
String getFilesList32(String& directory) {
|
String getFilesList32(String& directory) {
|
||||||
String filesList = "";
|
String filesList = "";
|
||||||
File root = FileFS.open(directory);
|
File root = FileFS.open(directory);
|
||||||
// if (!root) {
|
|
||||||
// return "";
|
|
||||||
// }
|
|
||||||
if (root.isDirectory()) {
|
if (root.isDirectory()) {
|
||||||
File file = root.openNextFile();
|
File file = root.openNextFile();
|
||||||
while (file) {
|
while (file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user