testing.fs.Entry Extends
A mock filesystem entry object.

Inheritance

Constructor

goog.testing.fs.Entry(fsparentname)

Parameters

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.

Instance Methods

Public Protected Private
checkNotDeleted(action) !goog.async.Deferred
Return a deferred that will call its errback if this entry has been deleted. In addition, the deferred will only run after a timeout of 0, and all its callbacks will run with the entry as "this".
Arguments:
action : string
The name of the action being performed. For error reporting.
Returns: !goog.async.Deferred  The deferred that will be called after a timeout of 0.
code »
clone() !goog.testing.fs.Entry
No description.
Returns: !goog.testing.fs.Entry  A shallow copy of this entry object.
code »
copyTo()
No description.
code »
getFileSystem() !goog.testing.fs.FileSystem
No description.
Returns: !goog.testing.fs.FileSystem  No description.
code »
getFullPath()
No description.
code »
getName()
No description.
code »
getParent()
No description.
code »
moveTo()
No description.
code »
remove()
No description.
code »
toUri()
No description.
code »
toUrl()
No description.
code »

Instance Properties

deleted :
Whether or not this entry has been deleted.
Code »
This entry's filesystem.
Code »
getLastModified :
No description.
Code »
getMetadata :
No description.
Code »
isDirectory :
No description.
Code »
isFile :
No description.
Code »
name_ :
The name of this entry.
Code »
The parent of this entry.
Code »
wrapEntry :
No description.
Code »

Package testing.fs

Package Reference