goog.fs.Entry | |
goog.fs.DirectoryEntry | goog.fs.Entry |
Opens the directory for the specified path, creating the directory and any
intermediate directories as necessary.
Arguments:
Returns: !goog.async.Deferred
A deferred
goog.fs.DirectoryEntry for
the requested path. If an error occurs, the errback is called with a
goog.fs.Error .
|
code » | |||
Get a directory within this directory.
Arguments:
Returns: !goog.async.Deferred
The deferred
goog.fs.DirectoryEntry .
If an error occurs, the errback is called a goog.fs.Error .
|
code » | |||
Get a file in the directory.
Arguments:
Returns: !goog.async.Deferred
The deferred
goog.fs.FileEntry . If an
error occurs, the errback is called with a goog.fs.Error .
|
code » | |||
Gets a list of all entries in this directory.
Returns: !goog.async.Deferred
The deferred list of
goog.fs.Entry
results. If an error occurs, the errback is called with a
goog.fs.Error .
|
code » | |||
Removes this directory and all its contents.
Returns: !goog.async.Deferred
A deferred object. If the removal succeeds,
the callback is called with true. If an error occurs, the errback is
called a
goog.fs.Error .
|
code » |
Copy this entry to a new location.
Arguments:
Returns: !goog.async.Deferred
The deferred
goog.fs.FileEntry or
goog.fs.DirectoryEntry for the new entry. If an error occurs, the
errback is called with a goog.fs.Error .
|
code » | |||
No description.
Returns: !goog.fs.FileSystem
The filesystem backing this entry.
|
code » | |||
No description.
Returns: string
The full path to this entry.
|
code » | |||
Retrieves the last modified date for this entry.
Returns: !goog.async.Deferred
The deferred Date for this entry. If an error
occurs, the errback is called with a
goog.fs.Error .
|
code » | |||
Retrieves the metadata for this entry.
Returns: !goog.async.Deferred
The deferred Metadata for this entry. If an
error occurs, the errback is called with a
goog.fs.Error .
|
code » | |||
No description.
Returns: string
The name of this entry.
|
code » | |||
Gets the parent directory.
Returns: !goog.async.Deferred
The deferred
goog.fs.DirectoryEntry .
If an error occurs, the errback is called with a goog.fs.Error .
|
code » | |||
No description.
Returns: boolean
Whether or not this entry is a directory.
|
code » | |||
No description.
Returns: boolean
Whether or not this entry is a file.
|
code » | |||
Move this entry to a new location.
Arguments:
Returns: !goog.async.Deferred
The deferred
goog.fs.FileEntry or
goog.fs.DirectoryEntry for the new entry. If an error occurs, the
errback is called with a goog.fs.Error .
|
code » | |||
Remove this entry.
Returns: !goog.async.Deferred
A deferred object. If the removal succeeds,
the callback is called with true. If an error occurs, the errback is
called a
goog.fs.Error .
|
code » | |||
Use
#toUrl instead.
Get the URI for this file.
Arguments:
Returns: string
The URI.
|
code » | |||
Get the URL for this file.
Arguments:
Returns: string
The URL.
|
code » | |||
Wrap an HTML5 entry object in an appropriate subclass instance.
Arguments:
Returns: !goog.fs.Entry
The appropriate subclass wrapper.
|
code » |
![]()
Behaviors for getting files and directories.
Constants:
|
Code » |