| 36 | public: |
| 37 | SdFatFileHandle(SdFile file, const char* path) : _file(fl::move(file)), _path(path) {} |
| 38 | ~SdFatFileHandle() override { |
| 39 | if (_file.isOpen()) { |
| 40 | _file.close(); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | bool is_open() const FL_NOEXCEPT override { |
| 45 | return _file.isOpen(); |