SPIFFS File object evaluates as true even if the file could not be opened.
This commit is contained in:
		
							parent
							
								
									d56267bd8c
								
							
						
					
					
						commit
						fa8a1c38d5
					
				| @ -113,7 +113,7 @@ public: | ||||
|         } | ||||
| 
 | ||||
|         File f = _fs.open(path, "r"); | ||||
|         if (!f) | ||||
|         if (!f || !f.available()) | ||||
|             return false; | ||||
| 
 | ||||
|         if (_cache_header.length() != 0) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user