40#include "tkn_config.h"
90#define gsystem (tkn::tksystem::the_tksystem())
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
Interface to the system (tested on linux and mac os)
int make_dir(const tkstring &_dirname, bool _recursive=true)
bool exists(tkstring _file_name)
int unzip_file(const tkstring &_filename, tkstring _outputdir="")
int remove_file(const tkstring &_filename, bool _force=false)
std::vector< tkstring > get_list_of_files(const tkstring &_dir, const tkstring &_pattern="*")
static tksystem * the_tksystem()
db_manager is a singleton
int remove_dir(const tkstring &_dirname, bool _force=false)
int ls_dir(const tkstring &_dirname, tkstring _option="-l")
int getdir(tkstring _dir, std::vector< tkstring > &_files)
int move(const tkstring &_from, const tkstring &_to)
void list_files(const tkstring &_dir, const tkstring &_pattern)
int download_file(const tkstring &_filename, const tkstring &_outputdir="", bool _replace_existing=false, bool _use_filename=false)
virtual ~tksystem()=default
tkstring get_system_command_output(tkstring command)