Helper library for mbed-os to manipulate file system paths.
It has helper functions over standard ones to simplify paths, files and directory manipulation.
Available functions:
rmtree- remove directory recursivelymakedirs- create directory and it's parentisdir- check if path is directoryisfile- check if path is regular fileexists- check if path existsgetsize- get size of the file/directoryisabs- check if path is absolutejoin_paths- concatenate two pathsappend_path- append one path to anothernormpath- normalize pathwrite_data- write data to file from bufferread_data- read data from file to buffer
The library has greentee test. So you can be run on a MCU, using mbed-cli. Steps to run tests:
- create an empty project mbed for your board/MCU
- add this library to your project:
mbed add <library_url> - run tests:
mbed test --greentea --tests-by-name "pathutil-*"