fix: file explorer and support select file (#111)

This commit is contained in:
Li Wei authored and GitHub committed 2023-05-04 14:32:37 +08:00
1 parent 34bcbd9571
commit 1e08ecd8db
3 files changed
+67 -9

No files matched your search

+5 -6
View File
@@ -3,12 +3,11 @@ import 'dart:io';
import 'package:flutter/foundation.dart';
class Util {
static String buildAbsPath(String dir, String path, String name) {
return (dir == "" ? "" : "$dir/") + buildPath(path, name);
}
static String buildPath(String path, String name) {
return (path == "" ? "" : "$path/") + name;
static String safeDir(String path) {
if (path == "." || path == "./" || path == ".\\") {
return "";
}
return path;
}
static String fmtByte(int byte) {