The goog.testing.fs.Entry Class

goog.testing.fs.Entry(fs, parent, name)

A mock filesystem entry object.

fs {!goog.testing.fs.FileSystem}
The filesystem containing this entry.
parent {!goog.testing.fs.DirectoryEntry}
The directory entry directly containing this entry.
name {string}
The name of this entry.

.clone()

returns {!goog.testing.fs.Entry}
A shallow copy of this entry object.

.copyTo(parent, opt_newName)

parent {!goog.testing.fs.DirectoryEntry}
opt_newName {string=}
returns {!goog.async.Deferred}
@see
{goog.fs.Entry#copyTo}

.deleted {boolean}

Whether or not this entry has been deleted.

.getFileSystem()

returns {!goog.testing.fs.FileSystem}
@see
{goog.fs.Entry#getFileSystem}

.getFullPath()

returns {string}
@see
{goog.fs.Entry#getFullPath}

.getLastModified()

returns {!goog.async.Deferred}
@see
{goog.fs.Entry#getLastModified}

.getMetadata()

returns {!goog.async.Deferred}
@see
{goog.fs.Entry#getMetadata}

.getName()

returns {string}
@see
{goog.fs.Entry#getName}

.getParent()

returns {!goog.async.Deferred}
@see
{goog.fs.Entry#getParent}

.isDirectory()

returns {boolean}
@see
{goog.fs.Entry#isDirectory}

.isFile()

returns {boolean}
@see
{goog.fs.Entry#isFile}

.moveTo(parent, opt_newName)

parent {!goog.testing.fs.DirectoryEntry}
opt_newName {string=}
returns {!goog.async.Deferred}
@see
{goog.fs.Entry#moveTo}

.parent {!goog.testing.fs.DirectoryEntry}

The parent of this entry.

.remove()

returns {!goog.async.Deferred}
@see
{goog.fs.Entry#remove}

.toUrl()

returns {string}
@see
{goog.fs.Entry#toUrl}