| 9 | namespace tt { |
| 10 | |
| 11 | bool findFirstMountedSdCardPath(std::string& path) { |
| 12 | auto* fs = findSdcardFileSystem(true); |
| 13 | if (fs == nullptr) return false; |
| 14 | char found_path[128]; |
| 15 | if (file_system_get_path(fs, found_path, sizeof(found_path)) != ERROR_NONE) return false; |
| 16 | path = found_path; |
| 17 | return true; |
| 18 | } |
| 19 | |
| 20 | FileSystem* findSdcardFileSystem(bool mustBeMounted) { |
| 21 | FileSystem* found = nullptr; |
no test coverage detected