improve download subpath

This commit is contained in:
wgh136
2024-05-16 10:55:49 +08:00
parent 945d386d17
commit 1698928212
5 changed files with 39 additions and 52 deletions

View File

@@ -29,6 +29,9 @@ extension FSExt on FileSystemEntity {
extension DirectoryExt on Directory {
bool havePermission() {
if(!existsSync()) return false;
if(App.isMacOS) {
return true;
}
try {
listSync();
return true;