summaryrefslogtreecommitdiffstats
path: root/cleanup/fs.hpp
blob: c206721166c4d86471fd0c40c432a1869e7f59bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <string>

namespace ipmi_flash
{

class FileSystemInterface
{
  public:
    virtual ~FileSystemInterface() = default;

    virtual void remove(const std::string& path) const = 0;
};

class FileSystem : public FileSystemInterface
{
  public:
    FileSystem() = default;

    void remove(const std::string& path) const override;
};

extern FileSystem fileSystemHelper;

} // namespace ipmi_flash
OpenPOWER on IntegriCloud