From b31ea4db7cb565830975c5880079ae1841d6f72b Mon Sep 17 00:00:00 2001 From: Toki Date: Tue, 24 Jan 2023 19:26:34 +0900 Subject: [PATCH] no message --- lib/utils/path.dart | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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) {