johnae / sambal

Ruby Samba Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote file md5sum

rajraj opened this issue · comments

Hi, Thanks for the gem. I have a quick question. Is there any way we can get the md5sum of a remote file?

If you are unable to add this feature, I am happy to do it but need some help to get started though.

Well, you need to fetch the data from remote and run md5sum on it - I suspect you might not want this because you may be looking for a way to determine if a file has changed and only if it has fetch it.

So then you would need some way to ask the remote to run some md5sum on the file... I'm not aware of anything like that in samba but theoretically it might exist - there's no real technical obstacle to it that I can think of.

Hi @johnae thanks for the reply. I will look into it to see if I can do anything. Looks like smbclient doesn't have a command for the md5sum though.