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 FileSystemSync extends FileSystem<Entry[]> {
\r
9 * Use sync API to read entries for Task.
\r
11 read(patterns: string[], filter: FilterFunction): Entry[];
\r
13 * Return entry for the provided path.
\r
15 getEntry(filepath: string, pattern: Pattern): Entry | null;
\r
17 * Return fs.Stats for the provided path.
\r
19 getStat(filepath: string): fs.Stats;
\r