LkEngine 0.1.2
 
Loading...
Searching...
No Matches
LkEngine::LFileSystem Class Reference

Classes

struct  FFileDialogFilterItem
 

Static Public Member Functions

static bool Exists (const std::filesystem::path &Filepath)
 
static bool DeleteFile (const std::filesystem::path &Filepath)
 
static bool Move (const std::filesystem::path &OldFilepath, const std::filesystem::path &NewFilepath)
 
static bool Copy (const std::filesystem::path &OldFilepath, const std::filesystem::path &NewFilepath)
 
static bool Rename (const std::filesystem::path &OldFilepath, const std::filesystem::path &NewFilepath)
 
static bool RenameFilename (const std::filesystem::path &OldFilepath, const std::string &NewName)
 
static bool CreateDirectory (const std::filesystem::path &Directory)
 
static bool IsDirectory (const std::filesystem::path &Path)
 
static bool IsNewer (const std::filesystem::path &EntryA, const std::filesystem::path &EntryB)
 
static bool ShowFileInExplorer (const std::filesystem::path &Path)
 
static bool OpenDirectoryInExplorer (const std::filesystem::path &DirectoryPath)
 
static bool FindSimilarFiles (const std::string &FilePattern, const std::filesystem::path &Directory, std::vector< std::filesystem::path > &Found)
 
static bool MoveFile (const std::filesystem::path &Filepath, const std::filesystem::path &Destination)
 
static void ConvertToPlatformPath (std::string &Path)
 
static void ConvertToUnixPath (std::string &WindowsPath)
 
static void ConvertToWindowsPath (std::string &UnixPath)
 
static std::string ConvertToPlatformPath (const std::filesystem::path &Path)
 
static std::string ConvertToUnixPath (const std::filesystem::path &WindowsPath)
 
static std::string ConvertToWindowsPath (const std::filesystem::path &UnixPath)
 
static std::string RemoveFileExtension (const std::string &File)
 
static std::string RemoveFileExtension (const std::filesystem::path &File)
 
static void RemoveFileExtension (std::string &File)
 
static std::filesystem::path OpenFileDialog (const std::initializer_list< FFileDialogFilterItem > InFilters={})
 
static std::filesystem::path SaveFileDialog (const std::initializer_list< FFileDialogFilterItem > InFilters={})
 
static std::filesystem::path OpenFolderDialog (const char *InitialFolder="")
 
static FORCEINLINE std::filesystem::path GetWorkingDir ()
 
static FORCEINLINE std::filesystem::path GetBinaryDir ()
 
static FORCEINLINE std::filesystem::path GetEngineDir ()
 
static FORCEINLINE std::filesystem::path GetEditorDir ()
 
static FORCEINLINE std::filesystem::path GetRuntimeDir ()
 
static FORCEINLINE std::filesystem::path GetConfigDir ()
 
static FORCEINLINE std::filesystem::path GetResourcesDir ()
 
static FORCEINLINE std::filesystem::path GetAssetsDir ()
 
static FORCEINLINE std::filesystem::path GetEngineConfig ()
 
static FORCEINLINE std::filesystem::path GetEditorConfig ()
 

Friends

struct Global
 

Member Function Documentation

◆ ConvertToPlatformPath() [1/2]

std::string LkEngine::LFileSystem::ConvertToPlatformPath ( const std::filesystem::path & Path)
staticnodiscard

Convert to a path to use the path separator for the current platform. Windows: \ Linux: /

◆ ConvertToPlatformPath() [2/2]

void LkEngine::LFileSystem::ConvertToPlatformPath ( std::string & Path)
static

Convert to a path to use the path separator for the current platform. Windows: \ Linux: /


The documentation for this class was generated from the following files: