Update packages (#27046)

* Update packages

* Change test for isFile
This commit is contained in:
Dan Field
2019-01-24 16:02:45 -08:00
committed by GitHub
parent 5ae6346f1d
commit 496c57386b
33 changed files with 254 additions and 219 deletions

View File

@@ -57,7 +57,9 @@ Future<void> generateDocs(String url, String docName, String checkFile) async {
output.createSync(recursive: true);
for (ArchiveFile af in archive) {
if (af.isFile) {
// TODO(dnfield): Archive changed their API so that isFile now returns true
// for directories.
if (!af.name.endsWith('/')) {
final File file = File('${output.path}/${af.name}');
file.createSync(recursive: true);
file.writeAsBytesSync(af.content);