Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.2 KB

JEC-cpp C++

Jabacat's Easy Config, C++ edition

JEC-py | JEC-rs | JEC-go | JEC-c | JEC-c++ | JEC-zig | JEC-ts | JEC-kt

Works in progress

API

ConfigFile
  - from_home
  - exists
  - remove
  - create
  
ConfigDir
  - from_home
  - exists
  - remove
  - create

Usage

// Files and Directories
static bool exists(fs::path& path);                     // Checks if file or directory exists

// Files
static void remove(fs::path& path);                     // Removes file
static void create(fs::path& path, std::string& name);  // Creates file
static std::string from_home(fs::path& path);           // Gets path from home

// Directories
static void remove(fs::path& path);                     // Removes Directory
static void create(fs::path& path, char name);          // Creates directory
static std::string from_home(fs::path& path);           // Gets directory path from home (auto delete filename)