Consolix
Loading...
Searching...
No Matches
path_utils.hpp File Reference

Utilities for working with file and directory paths, including resolving paths relative to the executable. More...

#include <string>
#include <vector>
#include <filesystem>

Go to the source code of this file.

Namespaces

namespace  consolix
 < Utility modules and helpers.
 

Macros

#define _CONSOLIX_PATH_UTILS_HPP_INCLUDED
 

Functions

std::string consolix::get_exec_path ()
 Retrieves the full path of the executable.
 
std::string consolix::get_exec_dir ()
 Retrieves the directory of the executable file.
 
std::string consolix::get_file_name (const std::string &file_path)
 Extracts the file name from a full file path.
 
std::string consolix::make_relative (const std::string &file_path, const std::string &base_path)
 Computes the relative path from base_path to file_path.
 
void consolix::create_directories (const std::string &path)
 Creates directories recursively for the given path.
 

Detailed Description

Utilities for working with file and directory paths, including resolving paths relative to the executable.

Definition in file path_utils.hpp.

Macro Definition Documentation

◆ _CONSOLIX_PATH_UTILS_HPP_INCLUDED

#define _CONSOLIX_PATH_UTILS_HPP_INCLUDED

Definition at line 3 of file path_utils.hpp.