Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/files/glob-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ const errCode = require('err-code')
* @param {boolean} [options.preserveMtime] - preserve mtime
* @param {number} [options.mode] - mode to use - if preserveMode is true this will be ignored
* @param {import('ipfs-unixfs').MtimeLike} [options.mtime] - mtime to use - if preserveMtime is true this will be ignored
* @yields {Object} File objects in the form `{ path: String, content: AsyncIterator<Buffer> }`
* @return {AsyncGenerator<{
* path: string;
* content: AsyncIterable<Buffer> | undefined;
* mode: number | undefined;
* mtime: import("ipfs-unixfs/types/src/types").MtimeLike | undefined;
* }, void, unknown>} File objects that match glob
*/
module.exports = async function * globSource (cwd, pattern, options) {
options = options || {}
Expand Down