9 #ifndef TurtleBrains_Utilities_hpp
10 #define TurtleBrains_Utilities_hpp
12 #include <turtle_brains/core/tb_string.hpp>
16 namespace TurtleBrains::Core::PlatformUtilities
30 String UserDirectoryPath(
void);
37 bool CreateDirectoryPath(
const String& pathToDirectory);
42 void RemoveFileOrDirectory(
const String& pathToRemove);
44 bool RenameFileOrDirectory(
const String& oldPath,
const String& newPath);
47 bool IsDirectory(
const String& pathToDirectory);
63 String GetFileName(
const String& pathToFile,
const bool includeExtension);
76 String GetCurrentWorkingDirectory(
void);
81 void SetCurrentWorkingDirectory(
const String& pathToDirectory);
86 bool DoesFileExist(
const String& pathToFile);
91 bool DoesDirectoryExist(
const String& pathToDirectory);
96 void GetContentsOfDirectory(
const String& pathToDirectory, std::vector<String>& contents);
120 bool IsNormalSlashes(
const String& path);
125 void OpenBrowserTo(
const String& uri);
Contains core functionality for each component of the API.
Definition: tb_debug_logger.hpp:125
std::string String
Definition: tb_string.hpp:302
std::uint32_t uint32
Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1).
Definition: tb_types.hpp:27