184
edits
(→Browsing contents: -forEachFile, -iteration, +contents) |
|||
Line 419: | Line 419: | ||
== Browsing contents == | == Browsing contents == | ||
/** | /** | ||
* | * Get the contents of the directory. | ||
* | * | ||
* @param {string=} filter. If provided, uses OS-accelerated, platform-specific, filtering, where available. | * @param {string=} filter. If provided, uses OS-accelerated, platform-specific, filtering, where available. | ||
* @ | * @return {Array.<Files.DirEntry>} The list of files of the directory that match the filter. | ||
*/ | */ | ||
contents: function(filter) { | |||
//Unix: maps to [opendir], [dfd], [readdir]/[readdir64], lazy calls to [stat], lazy calls to [openat]/[open], [closedir] | //Unix: maps to [opendir], [dfd], [readdir]/[readdir64], lazy calls to [stat], lazy calls to [openat]/[open], [closedir] | ||
//Windows: maps to [FindFirstFile], [FindNextFile], [Close] | //Windows: maps to [FindFirstFile], [FindNextFile], [Close] |
edits