esp-cpp / espp

C++ components for ESP
https://esp-cpp.github.io/espp/
MIT License
28 stars 9 forks source link

feat(file_system): Add remove(path) and remove_contents(path) #267

Closed finger563 closed 5 days ago

finger563 commented 5 days ago

Description

Motivation and Context

Current filesystem required you to manually iterate through all the contents of a directory and remove them manually (and you had to properly use unlink or rmdir depending on the type).

This simplifies use by providing some nice convenience functions on std::filesystem::path.

How has this been tested?

Building and running file_system/example on QtPy ESP32s3.

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

CleanShot 2024-07-01 at 13 57 50

Types of changes

Checklist:

Software

github-actions[bot] commented 5 days ago

:white_check_mark:Static analysis result - no issues found! :white_check_mark: