forked from cory/tildefriends
Add File.stat. Use it to cache manifests to speed up task start. async spreads like a virus.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3377 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
|
||||
#include <v8.h>
|
||||
|
||||
typedef struct uv_fs_s uv_fs_t;
|
||||
|
||||
class File {
|
||||
public:
|
||||
static void configure(v8::Isolate* isolate, v8::Handle<v8::ObjectTemplate> global);
|
||||
@ -14,6 +16,9 @@ private:
|
||||
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);
|
||||
static void stat(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||
|
||||
static void onStatComplete(uv_fs_t* request);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user