CBuild
C++ build system with scripts written in c++
|
filesystem++ api More...
#include "string"
#include "vector"
Go to the source code of this file.
Namespaces | |
namespace | CBuild |
Filebuffer for CBuild ecosystem. | |
namespace | CBuild::fs |
Enumerations | |
enum | CBuild::fs::type { CBuild::fs::FILE , CBuild::fs::DIRECTORY , CBuild::fs::DIR , CBuild::fs::SYMLINK_FILE , CBuild::fs::SYMLINK_DIRECTORY , CBuild::fs::SYMLINK_DIR , CBuild::fs::HARDLINK } |
Type for element creating. More... | |
Functions | |
std::vector< std::string > | CBuild::fs::dir (std::string path, std::string search) |
Search files using provided regex. | |
std::vector< std::string > | CBuild::fs::dir (std::string path) |
Search files using standard regex (".*\.(cpp|cxx|cc|c)") | |
std::vector< std::string > | CBuild::fs::dir_rec (std::string path, std::string search) |
Recursively search files using provided regex. | |
std::vector< std::string > | CBuild::fs::dir_rec (std::string path) |
Recursively search files using standard regex (".*\.(cpp|cxx|cc|c)") | |
bool | CBuild::fs::remove (std::string path, bool force=false) |
Delete files or directories. | |
bool | CBuild::fs::copy (std::string start, std::string end) |
Copy files or directories. | |
bool | CBuild::fs::move (std::string start, std::string end) |
Move files or directories, remove starting files or directories. | |
bool | CBuild::fs::rename (std::string start, std::string end) |
Rename files or directories,. | |
bool | CBuild::fs::create (std::vector< std::string > paths, CBuild::fs::type what) |
Create element. | |
bool | CBuild::fs::exists (std::string path) |
Check if file exists. | |
std::string | CBuild::fs::normalize_path (std::string path, std::string base_path="") |
Get absolute path to file using relative path and base path. | |
std::string | CBuild::fs::normalize_relative_path (std::string path, std::string base_path="") |
Get absolute path to file using relative path and base path. | |
std::string | CBuild::fs::base (std::string file) |
Get base file path (path to dir in what file is) | |
std::string | CBuild::fs::curr_path () |
Get current working dir of CBuild.run process. | |
filesystem++ api
@license GPL v3.0 or later
Copyright (C) 2023 WolodiaM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Definition in file filesystem++.hpp.