5#ifndef MIDDAY_COMMANDER_UTILITY_H
6#define MIDDAY_COMMANDER_UTILITY_H
20 static std::string
escape(
const std::string& str);
25 static std::shared_ptr<Entry>
makeEntry(
const std::filesystem::path& path);
30 static std::string
getHash(
const std::filesystem::path& path);
A set of utility functions.
Definition: Utility.h:15
static std::shared_ptr< Entry > makeEntry(const std::filesystem::path &path)
Makes the correct entry object based on it's path.
Definition: Utility.cpp:45
static std::string getHash(const std::filesystem::path &path)
Generates an MD5 hash of a file.
Definition: Utility.cpp:55
static std::string escape(const std::string &str)
Escapes a string so it can be printed.
Definition: Utility.cpp:14