goog.fs.DirectoryEntryImpl
Provided By | |
---|---|
Extends | |
All Implemented Interfaces |
A directory in a local FileSystem.
This should not be instantiated directly. Instead, it should be accessed via
goog.fs.FileSystem#getRoot
or
goog.fs.DirectoryEntry#getDirectoryEntry
.
new DirectoryEntryImpl( fs, dir )
Parameters |
|
---|
Instance Methods
this.copyTo( parent, opt_newName ) → goog.async.Deferred
goog.async.Deferred
Copy this entry to a new location.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||
Parameters |
| ||||||||
Returns |
|
this.createPath( path ) → goog.async.Deferred
goog.async.Deferred
Opens the directory for the specified path, creating the directory and any intermediate directories as necessary.
Specified by | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getDirectory( path, opt_behavior ) → goog.async.Deferred
goog.async.Deferred
Get a directory within this directory.
Specified by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.getFile( path, opt_behavior ) → goog.async.Deferred
goog.async.Deferred
Get a file in the directory.
Specified by | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
| ||||||||
Returns |
|
this.getFileSystem() → goog.fs.FileSystem
goog.fs.FileSystem
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getFullPath() → string
string
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getLastModified() → goog.async.Deferred
goog.async.Deferred
Retrieves the last modified date for this entry.
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getMetadata() → goog.async.Deferred
goog.async.Deferred
Retrieves the metadata for this entry.
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getName() → string
string
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.getParent() → goog.async.Deferred
goog.async.Deferred
Gets the parent directory.
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.isDirectory() → boolean
boolean
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.isFile() → boolean
boolean
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.listDirectory() → goog.async.Deferred
goog.async.Deferred
Gets a list of all entries in this directory.
Specified by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.moveTo( parent, opt_newName ) → goog.async.Deferred
goog.async.Deferred
Move this entry to a new location.
Overrides | |||||||||
---|---|---|---|---|---|---|---|---|---|
Specified by | |||||||||
Parameters |
| ||||||||
Returns |
|
this.remove() → goog.async.Deferred
goog.async.Deferred
Remove this entry.
Overrides | |||
---|---|---|---|
Specified by | |||
Parameters | None. | ||
Returns |
|
this.removeRecursively() → goog.async.Deferred
goog.async.Deferred
Removes this directory and all its contents.
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.
Overrides | |||||
---|---|---|---|---|---|
Specified by | |||||
Parameters |
| ||||
Returns |
|