xbmc
FileUtils.h
1 /*
2  * Copyright (C) 2010-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 <memory>
12 #include <string>
13 
14 class CFileItem;
15 class CDateTime;
16 
18 {
19 public:
20  static bool CheckFileAccessAllowed(const std::string &filePath);
21  static bool DeleteItem(const std::shared_ptr<CFileItem>& item);
22  static bool DeleteItem(const std::string &strPath);
23  static bool Exists(const std::string& strFileName, bool bUseCache = true);
24  static bool RenameFile(const std::string &strFile);
25  static bool RemoteAccessAllowed(const std::string &strPath);
26  static unsigned int LoadFile(const std::string &filename, void* &outputBuffer);
32  static CDateTime GetModificationDate(const std::string& strFileNameAndPath, const bool& bUseLatestDate);
33  static CDateTime GetModificationDate(const int& code, const std::string& strFileNameAndPath);
34 };
static CDateTime GetModificationDate(const std::string &strFileNameAndPath, const bool &bUseLatestDate)
Get the modified date of a file if its invalid it returns the creation date - this behavior changes w...
Definition: FileUtils.cpp:168
DateTime class, which uses FileTime as it&#39;s base.
Definition: XBDateTime.h:63
Definition: inftrees.h:24
static bool RemoteAccessAllowed(const std::string &strPath)
Definition: FileUtils.cpp:98
Definition: FileUtils.h:17
Represents a file on a share.
Definition: FileItem.h:102