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

Question: How best to verify uploaded files? #29

Open
glenthomas opened this issue Feb 26, 2024 · 1 comment
Open

Question: How best to verify uploaded files? #29

glenthomas opened this issue Feb 26, 2024 · 1 comment

Comments

@glenthomas
Copy link

glenthomas commented Feb 26, 2024

I am using this action to perform an SFTP upload and have seen an issue where a connection problem resulted in 0 byte files existing on the FTP server.

I would like to add some verification to the file upload so that I can be 100% sure that all files have been uploaded completely. What is the best way to achieve this?

I have considered some options already:

  1. Input artifacts: true and compare the content of the generated transfer_log.txt file to the files on the local disk.
  2. Input ftp-options: 'set xfer:verify true' to run a verify command. I'm not sure if this is doing anything as I don't see anything additional in the log output with this enabled.
  3. After the upload has completed, download all files from the FTP server and compare with the files on the local disk to check that they match. I haven't yet found a GitHub Action to do SFTP download....

I'm interested in any other suggestions, thanks.

@milanmk
Copy link
Owner

milanmk commented Feb 29, 2024

For point 2., I will suggest enabling the debug mode debug: true so that it will output more verbosely about the verification process.

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

No branches or pull requests

2 participants