Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djrandom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
djrandom
Merge requests
!1
Minor fixes on test instance
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Minor fixes on test instance
shammash/djrandom:master
into
master
Overview
0
Commits
4
Changes
2
Merged
shammash
requested to merge
shammash/djrandom:master
into
master
10 years ago
Overview
0
Commits
4
Changes
0
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
630a8871
4 commits,
10 years ago
+
21
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
Search (e.g. *.vue) (Ctrl+P)
api/fsapi/by_artist.go
+
5
−
1
Options
@@ -48,8 +48,12 @@ func (afs *ByArtistFilesystem) Stat(path string) (Attr, error) {
if len(p) == 3 {
return afs.getSong(p[0], p[1], p[2])
} else if len(p) < 3 {
name := "/"
if len(p) > 0 {
name = p[len(p)-1]
}
attr := Attr{
Name:
p[len(p)-1]
,
Name:
name
,
IsDir: true,
}
return attr, nil
Loading