Entry


Purpose

Represents entries in a file system, each of which may be the FileEntry or the DirectoryEntry object.

Attributes

The attributes of the Entry object are listed below:

Attribute Description Type
filesystem The file system on which the entry resides. Filesystem
fullPath The full absolute path from the root to the entry. string
isDirectory Entry is a directory. boolean
isFile Entry is a file. boolean
name The name of the entry, excluding the path leading to it. DOMString

Methods

Name Description
copyTo

Copies an entry to a different location on the file system.

getMetadata

Looks up metadata about the entry.

getParent

Looks up the parent directory entry containing the given entry.

moveTo

Moves an entry to a different location on the file system.

remove

Deletes a file or a directory. It is an error to attempt to delete a directory that is not empty or the root directory of a filesystem.

toURL

Returns an URL that can be used to identify this entry.

Related topics

Overview
Legal notice | Copyright © 2016 and Confidential to Pegasystems Inc. All rights reserved
PDN | Hybrid Container | Feedback
Advanced...