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 {
|
2017-03-27 22:14:41 -07:00
|
|
|
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 22:14:41 -07:00
|
|
|
|
2017-03-27 17:53:28 -07:00
|
|
|
extern bool recursive_copy(string, string);
|
2017-03-27 21:03:35 -07:00
|
|
|
extern bool recursive_remove(string);
|
2017-03-27 22:14:41 -07:00
|
|
|
extern bool recursive_copy(string, string, CopyCallbackFunc);
|
|
|
|
extern bool recursive_remove(string, RemoveCallbackFunc);
|
2017-03-12 22:32:46 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __FS_HPP
|