The goog.testing.fs.FileEntry Class

goog.testing.fs.FileEntry
> goog.testing.fs.Entry

goog.testing.fs.FileEntry(fs, parent, name, data)

A mock file 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.
data {string}
The data initially contained in the file.

.clone()

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

.copyTo(parent, opt_newName)

Inherited from goog.testing.fs.Entry .

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

.createWriter()

returns {!goog.async.Deferred}
@see
{goog.fs.FileEntry#createWriter}

.deleted {boolean}

Inherited from goog.testing.fs.Entry .

Whether or not this entry has been deleted.

.file()

returns {!goog.async.Deferred}
@see
{goog.fs.FileEntry#file}

.fileSync()

Get the internal file representation synchronously, without waiting for a Deferred to resolve.

returns {!goog.testing.fs.File}
The internal file blob referenced by this FileEntry.

.getFileSystem()

Inherited from goog.testing.fs.Entry .

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

.getFullPath()

Inherited from goog.testing.fs.Entry .

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()

Inherited from goog.testing.fs.Entry .

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

.getParent()

Inherited from goog.testing.fs.Entry .

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)

Inherited from goog.testing.fs.Entry .

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

.remove()

Inherited from goog.testing.fs.Entry .

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

.toUrl()

Inherited from goog.testing.fs.Entry .

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