MySQL 9.3.0
Source Code Documentation
utils_path_unix.cc File Reference
#include "utils/utils_path.h"
#include "utils/utils_string.h"
#include <errno.h>
#include <limits.h>
#include <pwd.h>
#include <unistd.h>
#include <cstdlib>
#include <memory>
#include <string>

Namespaces

namespace  shcore
 
namespace  shcore::path
 

Functions

std::string shcore::path::join_path (const std::vector< std::string > &components)
 
std::pair< std::string, std::string > shcore::path::splitdrive (const std::string &path)
 
std::string shcore::path::home ()
 Get home directory path of the user executing the shell. More...
 
std::string shcore::path::home (const std::string &loginname)
 Get home directory path of user associated with the specified login name. More...
 
std::string shcore::path::expand_user (const std::string &path)
 expand_user expand paths beginning with ~ or ~user (also known as "tilde expansion"). More...
 
std::tuple< std::string, std::string > shcore::path::split_extension (const std::string &path)
 Split path to (root, extension) tuple such that [root + extenstion == path]. More...
 
std::string shcore::path::normalize (const std::string &path)
 Unix: Normalize a path collapsing redundant separators and relative references. More...
 
std::string shcore::path::dirname (const std::string &path)
 
std::string shcore::path::basename (const std::string &path)
 
bool shcore::path::exists (const std::string &path)
 Returns true if the path exists. More...
 
std::string shcore::path::tmpdir ()
 
bool shcore::path::is_absolute (const std::string &path)
 Checks if path is absolute. More...
 
std::string shcore::path::errno_to_string (int err)
 
std::string shcore::path::getcwd ()
 Provides path to the current working directory. More...