mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
ensure root path is usable
This commit is contained in:
parent
a814bfb00b
commit
a50f89f16f
1 changed files with 4 additions and 2 deletions
|
|
@ -1312,8 +1312,9 @@ void MyMesh::checkCLIRescueCmd() {
|
||||||
|
|
||||||
// log each file and directory
|
// log each file and directory
|
||||||
File root = _store->openRead(path);
|
File root = _store->openRead(path);
|
||||||
File file = root.openNextFile();
|
if(root){
|
||||||
while (file) {
|
File file = root.openNextFile();
|
||||||
|
while (file) {
|
||||||
|
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
Serial.print("[dir] ");
|
Serial.print("[dir] ");
|
||||||
|
|
@ -1329,6 +1330,7 @@ void MyMesh::checkCLIRescueCmd() {
|
||||||
// move to next file
|
// move to next file
|
||||||
file = root.openNextFile();
|
file = root.openNextFile();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (memcmp(cli_command, "cat", 3) == 0) {
|
} else if (memcmp(cli_command, "cat", 3) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue