Skip to content

Commit

Permalink
fix for espressif#6172
Browse files Browse the repository at this point in the history
  • Loading branch information
technik-gegg committed Jan 23, 2022
1 parent 6a7bcab commit 3f7be60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/FFat/src/FFat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,16 @@ bool F_Fat::exists(const String& path)
return exists(path.c_str());
}

bool F_Fat::isDirectory(const char* path) // fix for #6172
{
File f = open(path, "r",false);
return (f == true) && f.isDirectory();
}

bool F_Fat::isDirectory(const String& path) // fix for #6172
{
return isDirectory(path.c_str());
}


F_Fat FFat = F_Fat(FSImplPtr(new VFSImpl()));

0 comments on commit 3f7be60

Please sign in to comment.