ILoveScratch
febbcd6027
feat(cache): improve cache management ( #1339 )
...
* feat(cache): improve cache management
* feat(disk-usage): add cache
* feat(disk-usage): add refresh
* fix(disk-usage): cache with ttl
* feat(cache): implement KeyedCache and TypedCache for improved caching mechanism
* fix(copy): update object retrieval to use Get instead of GetUnwrap
* refactor(cache): simplify DirectoryCache structure and improve object management
* fix(cache): correct cache entry initialization and key deletion logic in TypedCache
* refactor(driver): remove GetObjInfo interface and simplify Link function logic
https://github.com/OpenListTeam/OpenList/pull/888/files#r2430925783
* fix(link): optimize link retrieval and caching logic
* refactor(cache): consolidate cache management and improve directory cache handling
* fix(cache): add cache control based on storage configuration in List function
* .
* refactor: replace fmt.Sprintf with strconv for integer conversions
* refactor(cache): enhance cache entry management with Expirable interface
* fix(cache): improve link reference acquisition logic to handle expiration
* refactor: replace OnlyLinkMFile with NoLinkSF in driver configurations and logic
* refactor(link): enhance link caching logic with dynamic type keys based on IP and User-Agent
* feat(drivers): add LinkCacheType to driver configurations for enhanced caching
* refactor(cache): streamline directory object management in cache operations
* refactor(cache): remove unnecessary 'dirty' field from CacheEntry structure
* refactor(cache): replace 'dirty' field with bitwise flags
* refactor(io): 调高SyncClosers.AcquireReference的优先级
* refactor(link): 优化链接获取逻辑,增加重
* refactor(link): 添加RequireReference字段以增强链接管理
* refactor(link): 移除MFile字段,改用RangeReader
* refactor: 移除不必要的NoLinkSF字段
* refactor(cache): 修改目录缓存的脏标志定义和更新逻辑
* feat(cache): add expiration gc
---------
Co-authored-by: KirCute <951206789@qq.com >
Co-authored-by: KirCute <kircute@foxmail.com >
Co-authored-by: j2rong4cn <j2rong@qq.com >
2025-10-18 21:47:18 +08:00
LmanTW
93c06213d4
feat(local): add directory size support ( #624 )
...
* feat(local): add directory size support
* fix(local): fix and improve directory size calculation
* style(local): fix code style
* style(local): fix code style
* style(local): fix code style
* fix(local): refresh directory size when force refresh
Signed-off-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com >
* fix:(local): Avoid traversing the parent's parent, which leads to an endless loop
Signed-off-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com >
* fix(local:) refresh dir size only enabled
Signed-off-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com >
* fix(local): logical error && add RecalculateDirSize && cleaner code for int64
* feat(local): add Benchmark for CalculateDirSize
* refactor(local): 优化移动中对于错误的判断。
---------
Signed-off-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com >
Co-authored-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com >
2025-08-08 16:59:16 +08:00
j2rong4cn
cc01b410a4
perf(link): optimize concurrent response ( #641 )
...
* fix(crypt): bug caused by link cache
* perf(crypt,mega,halalcloud,quark,uc): optimize concurrent response link
* chore: 删除无用代码
* ftp
* 修复bug;资源释放
* 添加SyncClosers
* local,sftp,smb
* 重构,优化,增强
* Update internal/stream/util.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
* chore
* chore
* 优化,修复bug
* .
---------
Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-12 17:57:54 +08:00
MadDogOwner
874dc292ae
fix(gomod): go modules with tagged versions ( #499 )
...
fix: go modules with tagged versions
2025-07-01 09:54:50 +08:00
Kuingsmile
fdcc2f136e
chore: change module name to OpenListTeam/OpenList ( #2 )
...
* Enable blank issue
* chore(README.md): update docs (temporally)
* Update FUNDING.yml
* chore: purge README.md
* chore: change module name to OpenListTeam/OpenList
* fix: fix link errors
* chore: remove v3 in module name
* fix: resolve some conficts
* fix: resolve conficts
* docs: update with latest file
---------
Co-authored-by: ShenLin <773933146@qq.com >
Co-authored-by: Hantong Chen <cxwdyx620@gmail.com >
Co-authored-by: joshua <i@joshua.su >
Co-authored-by: Hantong Chen <70561268+cxw620@users.noreply.github.com >
2025-06-12 22:02:46 +08:00
Lin Tianchuan
31a7470865
feat(local): support both time and percent for video thumbnail ( #7802 )
...
* feat(local): support percent for video thumbnail
The percentage determines the point in the video (as a percentage of the total duration) at which the thumbnail will be generated.
* feat(local): support both time and percent for video thumbnail
2025-01-10 20:48:45 +08:00
Mmx
4874c9e43b
fix(local): thumbnails oom ( #7124 close #7082 )
...
* add my_build.sh
* Fix OOM of thumbnail generation of LoaclDrive by using a task queue to control thread count
* remove my_build.sh
* chore(local): allow ThumbConcurrency set to zero
* revert(local): changes to thumbnail generating functions
* feat(local): implement static token bucket
* feat(local): use static token bucket to limit thumbnails generating concurrent
---------
Co-authored-by: KKJas <75424880+Muione@users.noreply.github.com >
2024-09-03 20:03:30 +08:00
Andy Hsu
34b73b94f7
feat(local): allow specifying the recycle bin path ( close #5832 )
2024-01-09 18:51:21 +08:00
Andy Hsu
daad61443c
feat(local): support thumbnail cache ( close #4216 )
2023-05-11 19:57:24 +08:00
Andy Hsu
c9c4d6bc7e
fix!(local): perm on mkdir ( close #3626 )
2023-02-26 21:25:32 +08:00
Andy Hsu
e39299bfe2
fix(local): missed type of MkdirPerm ( 923937b)
2023-02-21 17:45:15 +08:00
Andy Hsu
923937b530
feat(local): custom mkdir perm ( close #3196 )
2023-02-20 16:20:36 +08:00
foxxorcat
33bae52fa1
refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters ( #2691 )
...
* refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters
* fix typo
Co-authored-by: Noah Hsu <i@nn.ci >
2022-12-13 18:03:30 +08:00
Jmper
da7e17aa38
feat(local): add show hidden config ( #2087 )
2022-10-23 14:53:07 +08:00
Noah Hsu
a1c86b3350
chore!: change root folder
2022-09-04 13:22:42 +08:00
Noah Hsu
284274b37e
feat: add 123pan driver
2022-09-01 22:13:37 +08:00
Noah Hsu
7ac1d14eeb
style: shorten name operations to op
2022-08-31 21:01:15 +08:00
Noah Hsu
f551dc76d0
feat: add onedrive driver
2022-08-30 21:52:06 +08:00
Noah Hsu
af884010d1
feat: local storage image thumbnail
2022-08-11 20:32:17 +08:00
Noah Hsu
638db77ca1
chore: rename local struct
2022-07-19 17:11:53 +08:00
Noah Hsu
fe94016289
chore: set default root folder in driver config
2022-07-19 17:07:12 +08:00
Noah Hsu
e3d2e6dd64
fix(local): local storage should haven't cache
2022-06-14 17:18:11 +08:00
Noah Hsu
cd7e9974df
feat: add root prefix before operate
2022-06-10 20:20:45 +08:00
Noah Hsu
e1a2ed0436
feat: driver and account operate
2022-06-09 17:11:46 +08:00
Noah Hsu
ba648fa10c
feat: get type from field's type
2022-06-08 16:32:20 +08:00
Noah Hsu
ae755db2d2
feat: driver additional items parse
2022-06-08 16:20:58 +08:00
Noah Hsu
677047c80b
feat: improve driver
2022-06-07 22:02:41 +08:00
Noah Hsu
0d93a6aa41
feat: driver manage
2022-06-07 18:13:55 +08:00