23 lines
552 B
C++
23 lines
552 B
C++
#pragma once
|
|
|
|
#include "ml.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
|
|
std::string read_file_contents(const std::string &filename);
|
|
|
|
bool write_file_contents(const std::string &filename, const std::string &content);
|
|
|
|
MlValue list_dir(const std::string &path);
|
|
|
|
bool is_path_file(const std::string &path);
|
|
bool is_path_dir(const std::string &path);
|
|
|
|
bool mk_path_dir(const std::string &path);
|
|
bool rm_path_dir(const std::string &path);
|
|
|
|
MlValue exec_system_cmd(const std::string &path);
|
|
MlValue exec_system_cmd_fork(const std::vector<std::string> &args);
|