Fix boolean/logical & mixup in LittleFS open by earlephilhower · Pull Request #6996 · esp8266/Arduino

@earlephilhower

To mimic SPIFFs behavior, we automatically create subdirectories when a
file is opened in a subdir.

The check mixed up a bitmask check with a boolean AND.  Fix it.