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

Investigate/add support for checksum verification when checksum available #17

Open
joeblew99 opened this issue Aug 11, 2016 · 4 comments

Comments

@joeblew99
Copy link

shit it works.. Thanks - really awesome lib.

@joeblew99
Copy link
Author

Is there a way for me to check if the file of the FTPserver is different from the ones i have locally ?
i am always downloading file. Never uploading.

thanks in advance.

@muirmanders
Copy link
Contributor

The best you can do is Stat() the file and check if the remote file size matches your local file. Of course, the files could be different but just happen to be the same size.

@rvicentiu
Copy link

old issue, I know...

some servers(and a few public ones too) support some kind of checksumming

for example - proftpd has mod_digest which adds

  • XCRC (requests CRC32 digest/checksum)
  • MD5/XMD5 (requests MD5 digest/checksum)
  • XSHA/XSHA1 (requests SHA1 digest/checksum)
  • XSHA256 (requests SHA256 digest/checksum)
  • XSHA512 (requests SHA512 digest/checksum)

you will have to implement this yourself though

@muirmanders
Copy link
Contributor

Thanks I didn't know about that. I'm updating this issue to track support for the checksumming in goftp.

@muirmanders muirmanders changed the title thanks !! Investigate/add support for checksum verification when checksum available Sep 11, 2016
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

3 participants