alist/drivers/123
okatu-loli d6f002a133 feat(driver): Added support for safe unlocking logic
- Added safe file unlocking logic in `driver.go`, returning an error if unlocking fails.
- Introduced the `safeBoxUnlocked` variable of type `sync.Map` to record the IDs of unlocked files.
- Enhanced error handling logic to automatically attempt to unlock safe files and re-retrieve the file list.
- Added the `IsLock` field to file types in `types.go` to identify whether they are safe files.
- Added a constant definition for the `SafeBoxUnlock` interface address in `util.go`.
- Added the `unlockSafeBox` method to unlock a safe with a specified file ID via the API.
- Optimized the file retrieval logic to automatically call the unlock method when the safe is locked.
2025-09-05 19:17:00 +08:00
..
driver.go feat(driver): Added support for safe unlocking logic 2025-09-05 19:17:00 +08:00
meta.go feat(meta): Added a SafePassword field 2025-09-05 17:58:40 +08:00
types.go feat(driver): Added support for safe unlocking logic 2025-09-05 19:17:00 +08:00
upload.go perf: optimize IO read/write usage (#8243) 2025-04-12 16:55:31 +08:00
util.go feat(driver): Added support for safe unlocking logic 2025-09-05 19:17:00 +08:00