Skip to content

SD open(): behavior on missing path on write #5019

Closed
@fabianoriccardi

Description

@fabianoriccardi

Hi,

I had noted that SD.open(/path/to/file/, "w") does not create the path to file if missing. I think this behavior is intuitive if you know the underlying implementation fopen, which does not create missing folders. However, I was used to ESP8266 Arduino core (SDFS and SPIFFS), and the common behavior creates any missing path.
Is this an intended behavior or a bug? Is there a parameter to force automatic creation of missing path?

IMHO, create missing path is very intuitive and more suitable for Arduino users.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions