media-command icon indicating copy to clipboard operation
media-command copied to clipboard

Skip Duplicates

Open imjoep opened this issue 4 years ago • 1 comments

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.

imjoep avatar Oct 25 '21 19:10 imjoep

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!

Senator685 avatar Aug 19 '23 10:08 Senator685