MCPcopy
hub / github.com/AlistGo/alist / processPoint

Method processPoint

drivers/github_releases/driver.go:41–53  ·  view source on GitHub ↗

processPoint 处理单个挂载点的文件列表

(point *MountPoint, path string, args model.ListArgs)

Source from the content-addressed store, hash-verified

39
40// processPoint 处理单个挂载点的文件列表
41func (d *GithubReleases) processPoint(point *MountPoint, path string, args model.ListArgs) []File {
42 var pointFiles []File
43
44 if !d.Addition.ShowAllVersion { // latest
45 point.RequestLatestRelease(d.GetRequest, args.Refresh)
46 pointFiles = d.processLatestVersion(point, path)
47 } else { // all version
48 point.RequestReleases(d.GetRequest, args.Refresh)
49 pointFiles = d.processAllVersions(point, path)
50 }
51
52 return pointFiles
53}
54
55// processLatestVersion 处理最新版本的逻辑
56func (d *GithubReleases) processLatestVersion(point *MountPoint, path string) []File {

Callers 1

ListMethod · 0.95

Calls 4

processLatestVersionMethod · 0.95
processAllVersionsMethod · 0.95
RequestLatestReleaseMethod · 0.80
RequestReleasesMethod · 0.80

Tested by

no test coverage detected