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: Any way to skip unmodified files from being uploaded to server? #466

Open
markcellus opened this issue Jul 20, 2023 · 1 comment
Labels

Comments

@markcellus
Copy link

Thanks for creating this package. I'm using it to upload files to my server when I'm deploying my site.

I've found that it takes longer and longer to deploy the files as the amount of files on my project grows. Is there a way to perhaps skip uploading files that are already on the server and that haven't changed? I'd imagine this would cut down on the files being uploaded and would make deployments a lot faster.

This may be out of the scope of the package, but just wanted to ask to see if anyone had any ideas or information on how they usually handle this case.

Thanks in advance!

@markcellus markcellus changed the title Question: Any way to skip non-modified files from being uploaded to server? Question: Any way to skip unmodified files from being uploaded to server? Jul 20, 2023
@steelbrain
Copy link
Owner

It’s possible to build this capability into options.validate. Good idea!

I am open to building this as a first class feature but that has the problem of how do we determine what files have changes? Looking at size may be enough in some cases while other cases may require hashing entire file contents.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants