kodi
OverrideDirectory.h
1 /*
2  * Copyright (C) 2014-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "filesystem/IDirectory.h"
12 
13 namespace XFILE
14 {
16 {
17 public:
19  ~COverrideDirectory() override;
20 
21  bool Create(const CURL& url) override;
22  bool Exists(const CURL& url) override;
23  bool Remove(const CURL& url) override;
24 
25 protected:
26  virtual std::string TranslatePath(const CURL &url) = 0;
27 };
28 }
Interface to the directory on a file system.
Definition: IDirectory.h:51
Definition: Scraper.h:41
Definition: URL.h:21
bool Exists(const CURL &url) override
Check for directory existence.
Definition: OverrideDirectory.cpp:36
bool Remove(const CURL &url) override
Removes the directory.
Definition: OverrideDirectory.cpp:29
bool Create(const CURL &url) override
Create the directory.
Definition: OverrideDirectory.cpp:22
Definition: OverrideDirectory.h:15