Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: fogfish/stream

Tags

v1.3.3

Toggle v1.3.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix ReadDir at local fs, relax path req for compatibility (#54)

v1.3.2

Toggle v1.3.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
(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)

v1.3.1

Toggle v1.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
(fix) return error from spool foreach (#51)

v1.3.0

Toggle v1.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
(fea) CurlFS as an abstraction for pre-signed URLs (#49)

v1.2.9

Toggle v1.2.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
(fea) CurlFS as an abstraction for pre-signed URLs (#49)

v1.2.8

Toggle v1.2.8's commit message
adapt spool api for io.Writer, eliminate buffering

v1.2.7

Toggle v1.2.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Unify spool api (#47)

v1.2.6

Toggle v1.2.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
log spool error (#46)

v1.2.5

Toggle v1.2.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
support spool partition (#45)

v1.2.4

Toggle v1.2.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
mount s3 at root and path prefix (#44)