mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 20:33:41 +00:00
fix: file explorer and support select file (#111)
This commit is contained in:
1 parent
34bcbd9571
commit
1e08ecd8db
3 files changed
+67
-9
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user