cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
Functions
cppfs::system Namespace Reference

Access system information. More...

Functions

CPPFS_API const std::string & homeDir ()
 Get home directory of the current user. More...
 
CPPFS_API std::string configDir (const std::string &application)
 Get config directory for the named application. More...
 

Detailed Description

Access system information.

Function Documentation

CPPFS_API const std::string& cppfs::system::homeDir ( )

Get home directory of the current user.

Returns
Home directory (native path)
Remarks
It is assumed that the home directory doesn't change for the process lifetime.
CPPFS_API std::string cppfs::system::configDir ( const std::string &  application)

Get config directory for the named application.

Parameters
[in]applicationApplication name
Returns
Config directory (native path)
Remarks
It is assumed that the config directory doesn't change for the process lifetime.