Baseflow / Baseflow/flutter_cache_manager
[Windows] FileSystemException: Cannot delete file
- Ngôn ngữ chính
- Dart
- Star
- 809
- Fork
- 510
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
## 🐛 Bug Report
stacktrace like this:
```
FileSystemException: FileSystemException: Cannot delete file, path = 'E:\娱乐\TapBooster\cache\temp\libCachedImageData\e2ac1550-dc22-11ec-a02b-eb8d38960b87.jpg' (OS Error: 另一个程序正在使用此文件,进程无法访问。
, errno = 32)
File "file_impl.dart", line 283, in _File._delete.
File "zone.dart", line 1434, in _rootRunUnary
File ""
File "forwarding_file_system_entity.dart", line 66, in ForwardingFileSystemEntity.delete
File ""
File "web_helper.dart", line 219, in WebHelper._removeOldFile
```
### Expected behavior
Catch exception
**Version:** v3.3.0
**Platform:**
- [ ] 🖥️ Windows
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong web_helper.dart ở dòng 219, tại WebHelper._removeOldFile, và kiểm tra cách thao tác xóa tệp được xử lý. Nếu có thể, hãy tái hiện lỗi trên Windows và xác minh rằng FileSystemException được bắt khi một tiến trình khác đang sử dụng tệp, mà không để thao tác dọn dẹp thất bại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100