forked from cory/tildefriends
20 lines
636 B
C
20 lines
636 B
C
|
#ifndef INCLUDED_File
|
||
|
#define INCLUDED_File
|
||
|
|
||
|
#include <v8.h>
|
||
|
|
||
|
class File {
|
||
|
public:
|
||
|
static void configure(v8::Isolate* isolate, v8::Handle<v8::ObjectTemplate> global);
|
||
|
|
||
|
private:
|
||
|
static void readFile(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
static void writeFile(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
static void readDirectory(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
static void makeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
static void unlinkFile(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
static void renameFile(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||
|
};
|
||
|
|
||
|
#endif
|