goog.testing.fs.DirectoryEntry
Classgoog.testing.fs.DirectoryEntry
> goog.testing.fs.Entry
goog.testing.fs.DirectoryEntry(fs, parent, name, children)
A mock directory entry object.
fs
{!goog.testing.fs.FileSystem
}
parent
{goog.testing.fs.DirectoryEntry
}
name
{string
}
children
{!Object
.<!goog.testing.fs.Entry
>}
.checkNotDeleted(action)
[protected]Inherited from goog.testing.fs.Entry
.
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".
action
{string
}
goog.async.Deferred
}
.children
{!Object
.<!goog.testing.fs.Entry
>}The map of child names to entry objects.
.clone()
goog.testing.fs.Entry
}
.copyTo(parent, opt_newName)
Inherited from goog.testing.fs.Entry
.
parent
{!goog.testing.fs.DirectoryEntry
}
opt_newName
{string
=}
goog.async.Deferred
}
.createDirectorySync(path)
Creates a directory synchronously. This is a shorthand for getFileSync, useful for setting up tests.
path
{string
}
goog.testing.fs.DirectoryEntry
}
.createFileSync(path)
Creates a file synchronously. This is a shorthand for getFileSync, useful for setting up tests.
path
{string
}
goog.testing.fs.FileEntry
}
.createPath
goog.async.Deferred
}
.deleted
{boolean
}Inherited from goog.testing.fs.Entry
.
Whether or not this entry has been deleted.
.getDirectory(path, opt_behavior)
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.async.Deferred
}
.getDirectorySync(path, opt_behavior)
Get a directory synchronously, without waiting for a Deferred to resolve.
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.testing.fs.DirectoryEntry
}
.getFile(path, opt_behavior)
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.async.Deferred
}
.getFileSync(path, opt_behavior)
Get a file entry synchronously, without waiting for a Deferred to resolve.
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.testing.fs.FileEntry
}
.getFileSystem()
Inherited from goog.testing.fs.Entry
.
goog.testing.fs.FileSystem
}
.getFullPath()
Inherited from goog.testing.fs.Entry
.
string
}
.getLastModified()
goog.async.Deferred
}
.getMetadata()
goog.async.Deferred
}
.getName()
Inherited from goog.testing.fs.Entry
.
string
}
.getParent()
Inherited from goog.testing.fs.Entry
.
goog.async.Deferred
}
.hasChild(name)
Returns whether this directory has a child with the given name.
name
{string
}
boolean
}
.isDirectory()
boolean
}
.isFile()
boolean
}
.listDirectory()
goog.async.Deferred
}
.moveTo(parent, opt_newName)
Inherited from goog.testing.fs.Entry
.
parent
{!goog.testing.fs.DirectoryEntry
}
opt_newName
{string
=}
goog.async.Deferred
}
.remove()
goog.async.Deferred
}
.removeRecursively()
goog.async.Deferred
}
.toUrl()
Inherited from goog.testing.fs.Entry
.
string
}