Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import * as upath from 'upath'; |
||
2 | import { readFileSync } from 'fs'; |
||
3 | import Config from './Config'; |
||
4 | import core from './../compiler/core'; |
||
5 | import filemanager from './../compiler/filemanager'; |
||
6 | import log from './../compiler/log'; |
||
7 | export default class local { |
||
8 | localpath: string; |
||
9 | constructor(private config: Config) { |
||
10 | this.localpath = config.localPath; |
||
11 | } |
||
12 | fetch() { |
||
13 | const path = this.localpath; |
||
14 | var read = core.readdir(path, [], this.config.ignores); |
||
15 | return read; |
||
16 | } |
||
17 | } |
||
18 |