Skip to content

Instantly share code, notes, and snippets.

View tobischw's full-sized avatar

Tobi Schweiger tobischw

  • Square Inc.
  • 22:33 (UTC -05:00)
View GitHub Profile
@tobischw
tobischw / copy_dir.dart
Created July 31, 2019 00:19 — forked from thosakwe/copy_dir.dart
Recursively copy directory in Dart (requires "path")
/*
* I'm sure there's a better way to do this, but this solution works for me.
* Recursively copies a directory + subdirectories into a target directory.
* There's also no error handling. Have fun.
*/
import 'dart:io';
import 'package:path/path.dart' as p;
Future<void> copyDirectory(Directory source, Directory destination) async {