Skip to content

SD.h: rename File and/or copy File #6080

@dsyleixa

Description

@dsyleixa

Related area

SD.h

Hardware specification

for either ESP32 plus SD slot

Is your feature request related to a problem?

I am missing a certain SD card <SD.h> functionality

Describe the solution you'd like

similar to
#include <SD.h>
File myFile;
SD.remove("example.txt");

now additionally:

int SD.rename("example.txt", "newname.txt");
and
int SD.copy("example.txt", "newname.txt");

Return value
If the file is successfully renamed or copied, a zero value is returned.
On failure, a nonzero value has to be returned.
Perhaps, an errno variable is also set to a system-specific error code on failure.

Describe alternatives you've considered

nothing similar found

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions