mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 08:42:27 +01:00
Rename 'array' class 'Ary'.
This commit is contained in:
@@ -871,24 +871,6 @@ var AsyncFile = Class("AsyncFile", File, {
|
||||
yield OS.File.makeDir(path, options);
|
||||
}),
|
||||
|
||||
/**
|
||||
* Iterates over the objects in this directory.
|
||||
*/
|
||||
iterDirectory: function* iterDirectory() {
|
||||
if (!this.exists())
|
||||
throw Error(_("io.noSuchFile"));
|
||||
if (!this.isDirectory())
|
||||
throw Error(_("io.eNotDir"));
|
||||
for (let file of iter(this.directoryEntries))
|
||||
yield File(file);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an iterator for all lines in a file.
|
||||
*/
|
||||
get lines() File.readLines(services.FileInStream(this.file, -1, 0, 0),
|
||||
this.charset),
|
||||
|
||||
_setEncoding: function _setEncoding(options) {
|
||||
if (this.encoding != null && !("encoding" in options))
|
||||
options = update({}, options,
|
||||
|
||||
Reference in New Issue
Block a user