Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add seek function to fileNode #403

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

another-rex
Copy link
Collaborator

Similar to #371, instead this time is to support the Archive extractor. I think this is the last main io interface we need to implement.

return 0, fs.ErrNotExist
}
if f.file == nil {
f.file, err = os.Open(f.RealFilePath())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to close?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it'll get closed when someone calls Close() on the fileNode

@copybara-service copybara-service bot merged commit 56d881c into google:main Jan 22, 2025
8 checks passed
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.

2 participants