Etterna 0.74.4
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
RageFileManager Class Reference

File utilities and high-level manager for RageFile objects. More...

#include <RageFileManager.h>

Classes

struct  DriverLocation
 

Public Types

enum  FileType { TYPE_FILE , TYPE_DIR , TYPE_NONE }
 

Public Member Functions

 RageFileManager (const std::string &argv0)
 
void GetDirListing (const std::string &sPath, std::vector< std::string > &AddTo, DirListingReturnFilter dirListingFilter=ANY_TYPE, bool bReturnPathToo=false)
 
void GetDirListingWithMultipleExtensions (const std::string &sPath, std::vector< std::string > const &ExtensionList, std::vector< std::string > &AddTo, DirListingReturnFilter dirListingFilter=ANY_TYPE, bool bReturnPathToo=false)
 
void GetDirListing (const std::string &sPath, std::vector< std::string > &AddTo, bool dirOnly, bool bReturnPathToo)
 
void GetDirListingWithMultipleExtensions (const std::string &sPath, std::vector< std::string > const &ExtensionList, std::vector< std::string > &AddTo, bool dirOnly, bool bReturnPathToo)
 
auto Move (const std::string &sOldPath, const std::string &sNewPath) -> bool
 
auto Remove (const std::string &sPath) -> bool
 
void CreateDir (const std::string &sDir)
 
auto GetFileType (const std::string &sPath) -> FileType
 
auto IsAFile (const std::string &sPath) -> bool
 
auto IsADirectory (const std::string &sPath) -> bool
 
auto DoesFileExist (const std::string &sPath) -> bool
 
auto GetFileSizeInBytes (const std::string &sPath) -> int
 
auto GetFileHash (const std::string &sPath) -> int
 
auto ResolvePath (const std::string &path) -> std::string
 Get the absolte path from the VPS.
 
auto ResolveSongFolder (const std::string &path, bool additionalSongs=false) -> std::string
 
auto Mount (const std::string &sType, const std::string &sRealPath, const std::string &sMountPoint, bool bAddToEnd=true) -> bool
 
void Mount (RageFileDriver *pDriver, const std::string &sMountPoint, bool bAddToEnd=true)
 
void Unmount (const std::string &sType, const std::string &sRoot, const std::string &sMountPoint)
 
void Remount (const std::string &sMountpoint, const std::string &sPath)
 
auto IsMounted (const std::string &MountPoint) -> bool
 
void GetLoadedDrivers (std::vector< DriverLocation > &asMounts)
 
void FlushDirCache (const std::string &sPath=std::string())
 
auto Open (const std::string &sPath, int iMode, int &iError) -> RageFileBasic *
 
void CacheFile (const RageFileBasic *fb, const std::string &sPath)
 
auto GetFileDriver (std::string sMountpoint) -> RageFileDriver *
 
void ReleaseFileDriver (RageFileDriver *pDriver)
 
void PushSelf (lua_State *L)
 

Detailed Description

File utilities and high-level manager for RageFile objects.

Member Function Documentation

◆ ResolvePath()

std::string RageFileManager::ResolvePath ( const std::string &  path) -> std::string

Get the absolte path from the VPS.

Parameters
paththe VPS path.
Returns
the absolute path.

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