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
~FileWrapper();
Destroys the FileWrapper.
Member Functions
construct
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 void isFileWrapper(
const v8::FunctionCallbackInfo < v8::Value > & args
);
Checks whether the given argument is a File.
objectTemplate
v8::Handle < v8::ObjectTemplate > objectTemplate(
v8::Isolate * pIsolate
);
canExecute
static void canExecute(
const v8::FunctionCallbackInfo < v8::Value > & args
);
canRead
static void canRead(
const v8::FunctionCallbackInfo < v8::Value > & args
);
canWrite
static void canWrite(
const v8::FunctionCallbackInfo < v8::Value > & args
);
concatPaths
static void concatPaths(
const v8::FunctionCallbackInfo < v8::Value > & args
);
copyTo
static void copyTo(
const v8::FunctionCallbackInfo < v8::Value > & args
);
createDirectories
static void createDirectories(
const v8::FunctionCallbackInfo < v8::Value > & args
);
createDirectory
static void createDirectory(
const v8::FunctionCallbackInfo < v8::Value > & args
);
createFile
static void createFile(
const v8::FunctionCallbackInfo < v8::Value > & args
);
currentDirectory
static void currentDirectory(
const v8::FunctionCallbackInfo < v8::Value > & args
);
freeSpace
static void freeSpace(
const v8::FunctionCallbackInfo < v8::Value > & args
);
getAbsolutePath
static void getAbsolutePath(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getBaseName
static void getBaseName(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getCreated
static void getCreated(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getExists
static void getExists(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getExtension
static void getExtension(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getLastModified
static void getLastModified(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getName
static void getName(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getParent
static void getParent(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getPath
static void getPath(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
getSize
static void getSize(
v8::Local < v8::String > name,
const v8::PropertyCallbackInfo < v8::Value > & info
);
glob
static void glob(
const v8::FunctionCallbackInfo < v8::Value > & args
);
isDevice
static void isDevice(
const v8::FunctionCallbackInfo < v8::Value > & args
);
isDirectory
static void isDirectory(
const v8::FunctionCallbackInfo < v8::Value > & args
);
isFile
static void isFile(
const v8::FunctionCallbackInfo < v8::Value > & args
);
isHidden
static void isHidden(
const v8::FunctionCallbackInfo < v8::Value > & args
);
isLink
static void isLink(
const v8::FunctionCallbackInfo < v8::Value > & args
);
linkTo
static void linkTo(
const v8::FunctionCallbackInfo < v8::Value > & args
);
list
static void list(
const v8::FunctionCallbackInfo < v8::Value > & args
);
moveTo
static void moveTo(
const v8::FunctionCallbackInfo < v8::Value > & args
);
open
static void open(
const v8::FunctionCallbackInfo < v8::Value > & args
);
remove
static void remove(
const v8::FunctionCallbackInfo < v8::Value > & args
);
renameTo
static void renameTo(
const v8::FunctionCallbackInfo < v8::Value > & args
);
resolvePath
static void resolvePath(
const v8::FunctionCallbackInfo < v8::Value > & args
);
roots
static void roots(
const v8::FunctionCallbackInfo < v8::Value > & args
);
setLastModified
static void setLastModified(
v8::Local < v8::String > name,
v8::Local < v8::Value > value,
const v8::PropertyCallbackInfo < void > & info
);
setSize
static void setSize(
v8::Local < v8::String > name,
v8::Local < v8::Value > value,
const v8::PropertyCallbackInfo < void > & info
);
toString
static void toString(
const v8::FunctionCallbackInfo < v8::Value > & args
);
totalSpace
static void totalSpace(
const v8::FunctionCallbackInfo < v8::Value > & args
);
usableSpace
static void usableSpace(
const v8::FunctionCallbackInfo < v8::Value > & args
);