anchor.diff:              'encountered $resourcePath');
         }
         String destFileName = resourcePath.substring(prefix.length);
  -      File destFile =
  -          new File(path.join(out.path, 'static-assets', destFileName))
  -            ..createSync(recursive: true);
  -      Uint8List resourceBytes = await loader.loadAsBytes(resourcePath);
  -      destFile.writeAsBytesSync(resourceBytes);
  +      _writeFile(path.join(out.path, 'static-assets', destFileName),
  +          await loader.loadAsBytes(resourcePath));
       }
     }
   
  
positive.code: 
      await _copyResources();
      if (faviconPath != null) {
        File file = new File(path.join(out.path, 'static-assets', 'favicon.png'));
        file.writeAsBytesSync(new File(faviconPath).readAsBytesSync());
      }
    }
  
  
negative.code: import 'dart:async' show Future, StreamController;
  import 'dart:convert' show JsonEncoder;
  import 'dart:io' show Directory, File;
  
  import 'package:collection/collection.dart' show compareNatural;
  import 'package:path/path.dart' as path;
  