diff --git a/lib/utils/path.dart b/lib/utils/path.dart index 95d51f5..87f24b2 100644 --- a/lib/utils/path.dart +++ b/lib/utils/path.dart @@ -2,12 +2,7 @@ import 'dart:io'; import 'dart:async'; import 'package:path/path.dart' as path; -enum FileType { - none, //not exit file - file, - directory, - link -} +enum FileType { none, file file, directory, link } class Path { static String? getParent(String path) { @@ -48,8 +43,8 @@ class Path { } static Future copy(String startPath, String destPath, bool isDir, - {required List ignorePattern, - required List ignoredList}) async { + {required List? ignorePattern, + required List? ignoredList}) async { var c = Completer(); var result = true; if (ignorePattern != null) {