MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / walkSync

Function walkSync

scripts/compareStorageLayout.js:104–115  ·  view source on GitHub ↗
(dir, filelist)

Source from the content-addressed store, hash-verified

102}
103
104var walkSync = function(dir, filelist) {
105 files = fs.readdirSync(dir);
106 filelist = filelist || [];
107 files.forEach(function(file) {
108 if (fs.statSync(path.join(dir, file)).isDirectory()) {
109 filelist = walkSync(path.join(dir, file), filelist);
110 } else {
111 filelist.push(path.join(dir, file));
112 }
113 });
114 return filelist;
115};
116
117var findPath = function(logicContractName, proxyContractName, fileList) {
118 let paths = new Array();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected