Poco::JS::File

class FileWrapper

File Information

Library: JS/File
Package: Wrappers
Header: Poco/JS/File/FileWrapper.h

Description

JavaScript wrapper for Poco::File.

Inheritance

Direct Base Classes: Poco::JS::Core::Wrapper

All Base Classes: Poco::JS::Core::Wrapper

Member Summary

Member Functions: canExecute, canRead, canWrite, concatPaths, construct, constructor, copyTo, createDirectories, createDirectory, createFile, currentDirectory, freeSpace, getAbsolutePath, getBaseName, getCreated, getExists, getExtension, getLastModified, getName, getParent, getPath, getSize, glob, isDevice, isDirectory, isFile, isFileWrapper, isHidden, isLink, linkTo, list, moveTo, objectTemplate, open, remove, renameTo, resolvePath, roots, setLastModified, setSize, toString, totalSpace, usableSpace

Inherited Functions: checkSetResult, isWrapper, objectTemplate, reportEmptySetResult, returnException, returnString, safeUnwrapNative, toString, toV8Internalized, toV8String, unwrapNative, unwrapNativeObject, wrapNative, wrapNativePersistent

Enumerations

OpenMode

OPEN_READ = 0x01

OPEN_WRITE = 0x02

OPEN_APPEND = 0x04

OPEN_ATEND = 0x08

OPEN_EXISTING = 0x10

OPEN_NOREPLACE = 0x20

OPEN_TRUNCATE = 0x40

Constructors

FileWrapper

FileWrapper();

Creates the FileWrapper.

Destructor

~FileWrapper virtual

~FileWrapper();

Destroys the FileWrapper.

Member Functions

construct static

static void construct(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

Creates a new FileWrapper.

constructor

v8::Handle < v8::FunctionTemplate > constructor(
    v8::Isolate * pIsolate
);

Creates and returns a V8 FunctionTemplate for the constructor function.

isFileWrapper static

static void isFileWrapper(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

Checks whether the given argument is a File.

objectTemplate virtual

v8::Handle < v8::ObjectTemplate > objectTemplate(
    v8::Isolate * pIsolate
);

canExecute protected static

static void canExecute(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

canRead protected static

static void canRead(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

canWrite protected static

static void canWrite(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

concatPaths protected static

static void concatPaths(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

copyTo protected static

static void copyTo(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

createDirectories protected static

static void createDirectories(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

createDirectory protected static

static void createDirectory(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

createFile protected static

static void createFile(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

currentDirectory protected static

static void currentDirectory(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

freeSpace protected static

static void freeSpace(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

getAbsolutePath protected static

static void getAbsolutePath(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getBaseName protected static

static void getBaseName(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getCreated protected static

static void getCreated(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getExists protected static

static void getExists(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getExtension protected static

static void getExtension(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getLastModified protected static

static void getLastModified(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getName protected static

static void getName(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getParent protected static

static void getParent(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getPath protected static

static void getPath(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

getSize protected static

static void getSize(
    v8::Local < v8::String > name,
    const v8::PropertyCallbackInfo < v8::Value > & info
);

glob protected static

static void glob(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

isDevice protected static

static void isDevice(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

isDirectory protected static

static void isDirectory(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

isFile protected static

static void isFile(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

isHidden protected static

static void isHidden(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

isLink protected static

static void isLink(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

linkTo protected static

static void linkTo(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

list protected static

static void list(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

moveTo protected static

static void moveTo(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

open protected static

static void open(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

remove protected static

static void remove(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

renameTo protected static

static void renameTo(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

resolvePath protected static

static void resolvePath(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

roots protected static

static void roots(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

setLastModified protected static

static void setLastModified(
    v8::Local < v8::String > name,
    v8::Local < v8::Value > value,
    const v8::PropertyCallbackInfo < void > & info
);

setSize protected static

static void setSize(
    v8::Local < v8::String > name,
    v8::Local < v8::Value > value,
    const v8::PropertyCallbackInfo < void > & info
);

toString protected static

static void toString(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

totalSpace protected static

static void totalSpace(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

usableSpace protected static

static void usableSpace(
    const v8::FunctionCallbackInfo < v8::Value > & args
);

Securely control IoT edge devices from anywhere   Connect a Device