farm-ng-core
filesystem.h File Reference
#include "farm_ng/core/logging/format.h"
#include <unistd.h>
#include <filesystem>
#include <optional>
Include dependency graph for filesystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 farm_ng
 

Functions

std::optional< std::filesystem::path > farm_ng::createVersionedFolder (std::filesystem::path const &target_path)
 Given a target_path name "foo", this function will create a version folder "foo.xy". More...
 
std::optional< std::filesystem::path > farm_ng::createUniqueTemporaryDirectory ()
 Creates a unique temporary directory with the prefix "/tmp/farm-ng-". More...