goog.testing.fs.Entry
Provided By | |
---|---|
All Implemented Interfaces | |
All Known Direct Subclasses |
A mock filesystem entry object.
new Entry( fs, parent, name )
Parameters |
|
---|
Instance Methods
this.checkNotDeleted( action ) → goog.async.Deferred
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".
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
this.clone() → goog.testing.fs.Entry
goog.testing.fs.Entry
Parameters | None. | ||
---|---|---|---|
Returns |
|
this.copyTo( parent, opt_newName ) → goog.async.Deferred
goog.async.Deferred
Copy this entry to a new location.
Specified by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.getFileSystem() → goog.testing.fs.FileSystem
goog.testing.fs.FileSystem
Specified by | ||
---|---|---|
Parameters | None. | |
Returns |
|
this.getFullPath() → string
string
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getLastModified() → goog.async.Deferred
goog.async.Deferred
Retrieves the last modified date for this entry.
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getMetadata() → goog.async.Deferred
goog.async.Deferred
Retrieves the metadata for this entry.
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getName() → string
string
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getParent() → goog.async.Deferred
goog.async.Deferred
Gets the parent directory.
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isDirectory() → boolean
boolean
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isFile() → boolean
boolean
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.moveTo( parent, opt_newName ) → goog.async.Deferred
goog.async.Deferred
Move this entry to a new location.
Specified by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.remove() → goog.async.Deferred
goog.async.Deferred
Remove this entry.
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.toUri( opt_mimeType ) → string
string
this.toUrl( opt_mimeType ) → string
string
this.wrapEntry( entry ) → goog.fs.Entry
goog.fs.Entry
Wrap an HTML5 entry object in an appropriate subclass instance.
Specified by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
Instance Properties
this.deleted → boolean
boolean
Whether or not this entry has been deleted.
this.parent → goog.testing.fs.DirectoryEntry
goog.testing.fs.DirectoryEntry
The parent of this entry.