Skip to content

Skip Duplicates #152

Closed
Closed

Description

@imjoep

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.

Activity

  1. Senator685 commented on Aug 19, 2023

    @Senator685

    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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions