LittleFS exists on ESP32?

I’m seeing something I don’t quite understand and I’m wondering what I’m doing wrong. I have the following platformio.ini configuration:

  framework = arduino
  platform = espressif32
  board = esp32doit-devkit-v1
  board_build.filesystem = littlefs

I can create a new file without any errors, but exists always returns false. For instance:

    File file = LittleFS.open(SETTINGS_FILE, "w", true);
    serializeJson(doc, file);
    file.flush();
    file.close();

    bool exists = LittleFS.exists(SETTINGS_FILE);
    Serial.println(exists);

Despite the file creation, the exists call always return false. Can anyone suggest what I might be missing?

Thanks!
Craig

Never mind. I wasn’t using a path. Instead of /settings.json , I was saving to settings.json which appears to silently fail.