![]() |
TkN 2.7
Toolkit for Nuclei
|
Interface to the system (tested on linux and mac os) More...
#include <base/tksystem.h>
Public Member Functions | |
| tksystem () | |
| virtual | ~tksystem ()=default |
| int | download_file (const tkstring &_filename, const tkstring &_outputdir="", bool _replace_existing=false, bool _use_filename=false) |
| bool | exists (tkstring _file_name) |
| std::vector< tkstring > | get_list_of_files (const tkstring &_dir, const tkstring &_pattern="*") |
| tkstring | get_system_command_output (tkstring command) |
| int | getdir (tkstring _dir, std::vector< tkstring > &_files) |
| void | list_files (const tkstring &_dir, const tkstring &_pattern) |
| int | ls_dir (const tkstring &_dirname, tkstring _option="-l") |
| int | make_dir (const tkstring &_dirname, bool _recursive=true) |
| int | move (const tkstring &_from, const tkstring &_to) |
| int | remove_dir (const tkstring &_dirname, bool _force=false) |
| int | remove_file (const tkstring &_filename, bool _force=false) |
| int | unzip_file (const tkstring &_filename, tkstring _outputdir="") |
Static Public Member Functions | |
| static tksystem * | the_tksystem () |
| db_manager is a singleton | |
Interface to the system (tested on linux and mac os)
Definition at line 27 of file tksystem.h.
|
inline |
Definition at line 29 of file tksystem.h.
|
virtualdefault |
| int download_file | ( | const tkstring & | _filename, |
| const tkstring & | _outputdir = "", | ||
| bool | _replace_existing = false, | ||
| bool | _use_filename = false ) |
Definition at line 149 of file tksystem.cpp.
| bool exists | ( | tkstring | _file_name | ) |
Definition at line 66 of file tksystem.cpp.
| std::vector< tkstring > get_list_of_files | ( | const tkstring & | _dir, |
| const tkstring & | _pattern = "*" ) |
Definition at line 103 of file tksystem.cpp.
Definition at line 163 of file tksystem.cpp.
Definition at line 44 of file tksystem.cpp.
Definition at line 95 of file tksystem.cpp.
Definition at line 144 of file tksystem.cpp.
| int make_dir | ( | const tkstring & | _dirname, |
| bool | _recursive = true ) |
Definition at line 127 of file tksystem.cpp.
Definition at line 133 of file tksystem.cpp.
| int remove_dir | ( | const tkstring & | _dirname, |
| bool | _force = false ) |
Definition at line 115 of file tksystem.cpp.
| int remove_file | ( | const tkstring & | _filename, |
| bool | _force = false ) |
Definition at line 121 of file tksystem.cpp.
|
static |
db_manager is a singleton
Definition at line 35 of file tksystem.cpp.
Definition at line 138 of file tksystem.cpp.