Skip to content

Fix Readlink support - #178

Open
brandond wants to merge 1 commit into
otiai10:mainfrom
brandond:fix-readlink
Open

brandond wants to merge 1 commit into
otiai10:mainfrom
brandond:fix-readlink

Conversation

@brandond

@brandond brandond commented Aug 14, 2026

Copy link
Copy Markdown

Requires go1.25 for fs.Lstat/fs.ReadLink

Also adds a fs() fs.FS helper to the Options type that returns either the specified FS, or the default host filesystem: os.DirFS("/"). This eliminates a few awkward if opt.FS != nil cases where the code conditionally called either os or fs equivalents.

Requires go1.25 for fs.Lstat/fs.ReadLink

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symlink copy does not respect opt.FS

1 participant