9#include "HAL/FileManagerGeneric.h"
10#include "Containers/StringConv.h"
11#include "Async/Async.h"
13#include "IDesktopPlatform.h"
19 FString ProjectRootPath = FPaths::ConvertRelativePathToFull(FPaths::ProjectDir());
22 int CharsToRemove = 11;
27 ProjectRootPath.RemoveAt(ProjectRootPath.Len() - CharsToRemove, CharsToRemove,
true);
29 return ProjectRootPath;
35 FString ContentFolder = RootPath +
"Unreal/Agrarsense/Content/";
47 IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
50 FString DataRoot = RootPath +
"Data";
52 if (!FPaths::DirectoryExists(DataRoot))
54 PlatformFile.CreateDirectory(*DataRoot);
58 FString BaseDataFolderPath = DataRoot +
"/Run";
78 FString DataFolderPath = RootPath +
"Examples/";
81 IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile();
82 if (!PlatformFile.DirectoryExists(*DataFolderPath))
84 PlatformFile.CreateDirectory(*DataFolderPath);
87 return DataFolderPath;
static FString GetContentFolderPath()
static FString GetDataFolder()
static FString GetProjectRootFolder()
static FString DataPathForThisRun
static FString GetExamplesFolder()