kodi
PosixDirectory.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 {
15 
17 {
18 public:
19  CPosixDirectory(void);
20  ~CPosixDirectory(void) override;
21  bool GetDirectory(const CURL& url, CFileItemList &items) override;
22  bool Create(const CURL& url) override;
23  bool Exists(const CURL& url) override;
24  bool Remove(const CURL& url) override;
25  bool RemoveRecursive(const CURL& url) override;
26 private:
27  bool Create(const std::string& path);
28 };
29 }
Definition: PosixDirectory.h:16
Interface to the directory on a file system.
Definition: IDirectory.h:51
Definition: Scraper.h:41
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: PosixDirectory.cpp:28
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
bool Remove(const CURL &url) override
Removes the directory.
Definition: PosixDirectory.cpp:124
bool Exists(const CURL &url) override
Check for directory existence.
Definition: PosixDirectory.cpp:196
bool Create(const CURL &url) override
Create the directory.
Definition: PosixDirectory.cpp:97
bool RemoveRecursive(const CURL &url) override
Recursively removes the directory.
Definition: PosixDirectory.cpp:132