1 /// <reference types="node" />
\r
2 import * as fs from 'fs';
\r
3 import FileSystem from './fs';
\r
4 import { FilterFunction } from '@mrmlnc/readdir-enhanced';
\r
5 import { Entry } from '../types/entries';
\r
6 import { Pattern } from '../types/patterns';
\r
7 export default class FileSystemStream extends FileSystem<NodeJS.ReadableStream> {
\r
9 * Use stream API to read entries for Task.
\r
11 read(patterns: string[], filter: FilterFunction): NodeJS.ReadableStream;
\r
13 * Return entry for the provided path.
\r
15 getEntry(filepath: string, pattern: Pattern): Promise<Entry | null>;
\r
17 * Return fs.Stats for the provided path.
\r
19 getStat(filepath: string): Promise<fs.Stats>;
\r