goog.testing.fs.FileEntry
Classgoog.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
}
parent
{!goog.testing.fs.DirectoryEntry
}
name
{string
}
data
{string
}
.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
}
.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
}
.createWriter()
goog.async.Deferred
}
.deleted
{boolean
}Inherited from goog.testing.fs.Entry
.
Whether or not this entry has been deleted.
.file()
goog.async.Deferred
}
.fileSync()
Get the internal file representation synchronously, without waiting for a Deferred to resolve.
goog.testing.fs.File
}
.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
}
.isDirectory()
boolean
}
.isFile()
boolean
}
.moveTo(parent, opt_newName)
Inherited from goog.testing.fs.Entry
.
parent
{!goog.testing.fs.DirectoryEntry
}
opt_newName
{string
=}
goog.async.Deferred
}
.remove()
Inherited from goog.testing.fs.Entry
.
goog.async.Deferred
}
.toUrl()
Inherited from goog.testing.fs.Entry
.
string
}