Completed
Push — master ( 9db7be...35eeb3 )
by Dimas
13:00
created

libs/src/syncs/local.ts   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 18
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A local.fetch 0 4 1
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