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

Skip Duplicates #152

Open
imjoep opened this issue Oct 25, 2021 · 1 comment
Open

Skip Duplicates #152

imjoep opened this issue Oct 25, 2021 · 1 comment

Comments

@imjoep
Copy link

imjoep commented Oct 25, 2021

Feature Request

Describe your use case and the problem you are facing

I have a directory that I regularly update with images, audio, video, and documents. I want to run wp media import on this directory but have it skip any files that have already been imported. I can't think of a way to do this today other than some complicated scripting on my side that would compare file names and date modified between the two systems.

Describe the solution you'd like

I would love a flag that I could run as part of the command that could automatically do this for me. I plan on setting up a batch job to continuously import from the directory, it would be great if I could just run wp media import --skip_existing or something along those lines.

@Senator685
Copy link

Hi

I am trying to do the exact same thing. Did you ever find a solution to this?

You mentioned using a batch job to continuously import from a server directory. Is that something you have working? If so, could you please point me in the right direction how to do this myself?

Thanks!

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

No branches or pull requests

3 participants