dmathieu / glynn

Unmaintained. See the README - Generate your jekyll blog files and sends them through FTP
MIT License
359 stars 56 forks source link

Exclude files, dirs on upload OR copy only different size? #25

Closed mibamur closed 10 years ago

mibamur commented 11 years ago

Hello!

I have some big images and many js duplicate libarary for "when CDN fail", and when I load all files and dirs to host - spend more time.

Solve problem:

dmathieu commented 11 years ago

Interesting idea. Checking the update date wouldn't be reliable, since it's not necessarily always the same machine releasing. The file size could also cause problems if a file has been changed but is size happens to remain the same.

What about storing an internal manifest file containing a md5 of all files, and checking both hashes in order to decide whether we want to upload or not?

mibamur commented 11 years ago

I thinking about md5. Can We/ I /You add this options and how do it right?

simple scheme

localrepo

remote

Logic

get manifest.remote
if manifest.local != manifest.remote {
  compare  manifest.local.Hash manifest.remote.Hash
 # where Hash { file1, md5 }
}

You mean like that?

dmathieu commented 11 years ago

Yes, I think you got the idea. Unfortunately, I don't think I'll have the time to implement this in the near future. Feel free to work on it, I'll be glad to review any PR.

mibamur commented 11 years ago

ok, I`ll do it

dmathieu commented 11 years ago

Don't close this issue, as it's not fixed yet ;)

mibamur commented 10 years ago

in works

dmathieu commented 10 years ago

I'm actually going to close this, since it's not a bug but a feature request and it's going stale. Anybody wants to work on it, feel free to open a PR.

mibamur commented 10 years ago

I made it but can not find better place where I may paste my code.

veromary commented 10 years ago

Looking forward to it. The suspense!

veromary commented 10 years ago

Any news?

mibamur commented 10 years ago

I will do it next week! I promise :)