(archive)
| 139 | } |
| 140 | |
| 141 | function getExtractor(archive) { |
| 142 | // Make the archive lower case to match against the types |
| 143 | // This ensures that upper-cased extensions work |
| 144 | archive = archive.toLowerCase(); |
| 145 | |
| 146 | var type = mout.array.find(extractorTypes, function(type) { |
| 147 | return mout.string.endsWith(archive, type); |
| 148 | }); |
| 149 | |
| 150 | return type ? extractors[type] : null; |
| 151 | } |
| 152 | |
| 153 | function isSingleDir(dir) { |
| 154 | return Q.nfcall(fs.readdir, dir).then(function(files) { |
no outgoing calls
no test coverage detected
searching dependent graphs…