mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
improve code
This commit is contained in:
@@ -12,6 +12,14 @@ extension FSExt on FileSystemEntity {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteIgnoreError() async {
|
||||
try {
|
||||
await delete();
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
int get size {
|
||||
if (this is File) {
|
||||
return (this as File).lengthSync();
|
||||
|
Reference in New Issue
Block a user