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:
2017-01-13 01:04:00 +00:00
parent 63361ec1f8
commit c1b75821bf
4 changed files with 86 additions and 10 deletions

View File

@ -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