26template <
class ClientType>
32 const char* ext,
int files = 0) {
84 if (path ==
nullptr)
return nullptr;
87 if (!
begin())
return nullptr;
92 const char*
toStr()
override {
return file.name(); }
114 LOGI(
"open %s", path);
117 LOGE(
"Could not open %s", path);
125 if (
p_client ==
nullptr)
return false;
128 const char* name = it.fileName();
151 if (strchr(name,
'/') !=
nullptr) {
161 if (
index < 0)
return false;
171 if (
file ==
nullptr)
return false;
172 if (ext ==
nullptr)
return true;