goog.fs.DirectoryEntry
Classgoog.fs.DirectoryEntry
> goog.fs.Entry
goog.fs.DirectoryEntry(fs, dir)
A directory in a local FileSystem. This should not be instantiated directly. Instead, it should be accessed via {@link goog.fs.FileSystem#getRoot} or {@link goog.fs.DirectoryEntry#getDirectoryEntry}.
fs
{!goog.fs.FileSystem
}
dir
{!DirectoryEntry
}
goog.fs.DirectoryEntry.Behavior
EnumBehaviors for getting files and directories. … more
.copyTo(parent, opt_newName)
Inherited from goog.fs.Entry
.
Copy this entry to a new location.
parent
{!goog.fs.DirectoryEntry
}
opt_newName
{string
=}
goog.async.Deferred
}
.createPath(path)
Opens the directory for the specified path, creating the directory and any intermediate directories as necessary.
path
{string
}
goog.async.Deferred
}
.getDirectory(path, opt_behavior)
Get a directory within this directory.
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.async.Deferred
}
.getFile(path, opt_behavior)
Get a file in the directory.
path
{string
}
opt_behavior
{goog.fs.DirectoryEntry.Behavior
=}
goog.async.Deferred
}
.getFileSystem()
Inherited from goog.fs.Entry
.
goog.fs.FileSystem
}
.getFullPath()
Inherited from goog.fs.Entry
.
string
}
.getLastModified()
Inherited from goog.fs.Entry
.
Retrieves the last modified date for this entry.
goog.async.Deferred
}
.getMetadata()
Inherited from goog.fs.Entry
.
Retrieves the metadata for this entry.
goog.async.Deferred
}
.getName()
Inherited from goog.fs.Entry
.
string
}
.getParent()
Inherited from goog.fs.Entry
.
Gets the parent directory.
goog.async.Deferred
}
.isDirectory()
Inherited from goog.fs.Entry
.
boolean
}
.isFile()
Inherited from goog.fs.Entry
.
boolean
}
.listDirectory()
Gets a list of all entries in this directory.
goog.async.Deferred
}
.moveTo(parent, opt_newName)
Inherited from goog.fs.Entry
.
Move this entry to a new location.
parent
{!goog.fs.DirectoryEntry
}
opt_newName
{string
=}
goog.async.Deferred
}
.remove()
Inherited from goog.fs.Entry
.
Remove this entry.
goog.async.Deferred
}
.removeRecursively()
Removes this directory and all its contents.
goog.async.Deferred
}
.toUri
[deprecated]Deprecated. Use {@link #toUrl} instead.
Inherited from goog.fs.Entry
.
Get the URI for this file.
opt_mimeType
{string
=}
string
}
.toUrl(opt_mimeType)
Inherited from goog.fs.Entry
.
Get the URL for this file.
opt_mimeType
{string
=}
string
}
.wrapEntry(entry)
[protected]Inherited from goog.fs.Entry
.
Wrap an HTML5 entry object in an appropriate subclass instance.
entry
{!Entry
}
goog.fs.Entry
}