cellar/include/fs.hpp

24 lines
567 B
C++
Raw Permalink Normal View History

2017-03-12 22:32:46 -07:00
#ifndef __FS_HPP
#define __FS_HPP
#pragma once
#include <string>
#include <vector>
using namespace std;
namespace cellar {
namespace fs {
typedef void (*CopyCallbackFunc)(string,string);
typedef void (*RemoveCallbackFunc)(string);
2017-03-12 22:32:46 -07:00
extern vector<string> listdir(string path);
2017-03-27 17:53:28 -07:00
extern bool recursive_copy(string, string);
extern bool recursive_remove(string);
extern bool recursive_copy(string, string, CopyCallbackFunc);
extern bool recursive_remove(string, RemoveCallbackFunc);
2017-03-12 22:32:46 -07:00
}
}
#endif // __FS_HPP