public class UnmanagedFolder extends JSBaseScriptableObject implements IFolderObject
Constructor and Description |
---|
UnmanagedFolder() |
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor(java.lang.String thePathName)
Construct a unmanaged folder reference to a folder that may or may not exist.
|
boolean |
(JavaScript Function) create()
Creates this folder and all parent folders
|
FileAndFolderIterator |
(JavaScript Function) getContents(int theDepth)
Gets all files and folders in the folder.
|
boolean |
(JavaScript Getter) exists()
Tests whether the directory denoted by this abstract pathname exists.
|
java.lang.String |
(JavaScript Getter) name()
Returns the name of the directory.
|
IFolderObject |
(JavaScript Getter) parent()
Returns the parent directory.
|
java.lang.String |
(JavaScript Getter) path()
Get the folder's absolute path.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void jsConstructor(java.lang.String thePathName) throws java.io.IOException
thePathName
- the absolute or relative path to the folder.java.io.IOException
public java.lang.String (JavaScript Getter) path()
(JavaScript Getter) path
in interface IFolderObject
public boolean (JavaScript Getter) exists()
(JavaScript Getter) exists
in interface IFolderObject
true
if the file or directory exists.public java.lang.String (JavaScript Getter) name()
(JavaScript Getter) name
in interface IFolderObject
public IFolderObject (JavaScript Getter) parent()
(JavaScript Getter) parent
in interface IFolderObject
IFileObject
represents parent file or directory.public FileAndFolderIterator (JavaScript Function) getContents(int theDepth)
theDepth
- the depth of the recursion, if it is not specified or null then the method returns all files and folders at any depth.public boolean (JavaScript Function) create()
true
if and only if the directory was created, along with all necessary parent directories; false
otherwiseCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.