Skip to content

feat(sftp): added modtime metadata to sftp input #3358

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anthonyvitale
Copy link

Related: #2955, #2970

Adds modTime to sftp input metadata

@@ -259,6 +267,11 @@ func (s *sftpReader) initScanner(ctx context.Context) (codec.DeprecatedFallbackS
return nil, service.ErrEndOfInput
}

fileInfo, err := s.client.Stat(path)
if err != nil {
return nil, fmt.Errorf("stat path: %w", err)
Copy link
Author

Choose a reason for hiding this comment

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

Wasn't really sure what kind of error checking we wanted, went with this as a default, let me know what's best.

@mmatczuk
Copy link
Collaborator

LGTM

@mmatczuk mmatczuk requested a review from mihaitodor April 25, 2025 09:05
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