const Scan = require('sugar-scan')
const scan = new Scan({ path: './', ext: '*', });
直接读取scan实例的files属性,返回的是Map对象。
const files = scan.files;