• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fogfish / stream / 18996727581
84%

Build:
DEFAULT BRANCH: main
Ran 01 Nov 2025 12:28PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Nov 2025 12:28PM UTC coverage: 83.831% (+6.2%) from 77.618%
18996727581

push

github

web-flow
(fix) Inconsistent file path behaviour (#53)

Key Changes:
Updated shared validation functions (filename.go):

IsValidFile(), IsValidPath(), and IsValidDir() now accept paths with or without leading /
Both /file.txt and file.txt are treated as equivalent paths relative to the mount point
Relative paths with .. are still rejected by fs.ValidPath()
Both filesystems now behave identically:

S3 filesystem (stream): Already had path normalization in s3Key() that strips leading /
Local filesystem (lfs): Uses trim() function to normalize paths before filesystem operations
Both accept the same path formats and treat them consistently
Updated documentation:

Both Create() and Open() methods in both filesystems now document that paths can be with or without leading /
Clear that both forms are treated as paths relative to the mount point

Before:
Paths required leading / → fsys.Create("/file.txt", nil) ✅
Paths without / failed → fsys.Create("file.txt", nil) ❌

After:
Both forms work equally → fsys.Create("/file.txt", nil) ✅
→ fsys.Create("file.txt", nil) ✅
Both are treated as the same file at the mount root
No support for relative traversal with ../ (correctly rejected)

26 of 29 new or added lines in 2 files covered. (89.66%)

10 existing lines in 3 files now uncovered.

814 of 971 relevant lines covered (83.83%)

0.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
86.57
-5.27% filename.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
86.57
-5.27% filename.go
2
86.05
-0.78% filesystem.go
6
89.93
-4.32% lfs/filesystem.go
Jobs
ID Job ID Ran Files Coverage
1 18996727581.1 01 Nov 2025 12:28PM UTC 8
83.83
GitHub Action Run
Source Files on build 18996727581
  • Tree
  • List 8
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f02b8666 on github
  • Prev Build on main (#16918535388)
  • Next Build on main (#19047737857)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc