mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
fix download
This commit is contained in:
@@ -21,6 +21,18 @@ extension FSExt on FileSystemEntity {
|
||||
}
|
||||
}
|
||||
|
||||
extension DirectoryExt on Directory {
|
||||
bool havePermission() {
|
||||
if(!existsSync()) return false;
|
||||
try {
|
||||
listSync();
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String bytesToText(int bytes) {
|
||||
if(bytes < 1024) {
|
||||
return "$bytes B";
|
||||
|
Reference in New Issue
Block a user