eclipse-iceoryx / eclipse-iceoryx/iceoryx
Add helper functions to `cxx::filesystem`
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 492
- Avg merge
- 18h 57m
- Merged PRs (30d)
- 1
Description
## Brief feature description
In unit tests we sometimes require platform independent helper functions to modify directories. We should add functions like:
### Required
* `create_directory`
* `temp_directory_path` (used for file lock and sockets)
* `remove` & `remove_all`
### Optionally also:
* `exists`
* `is_directory`
* `is_regular_file`
* `is_socket`
It is important that those functions are working platform independently!
## ToDo
- [ ] Implement required features
- [ ] Implement optional features
- [ ] When this is implemented tests to the `FileLock` have to be added, see: https://github.com/eclipse-iceoryx/iceoryx/pull/1418#discussion_r907667097
Contributor guide
Research direction
Start by locating the existing cxx::filesystem namespace and the FileLock tests or implementation referenced in the PR discussion. Review how platform-specific directory, temporary-path, removal, and file-type operations are currently handled; done means the required helpers work across supported platforms and FileLock tests cover the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100