Skip to content

Remove addDir #55

@n1ywb

Description

@n1ywb

addDir should be removed because it's impossible to correlate the created image ID's with the original image file.

addDir recurses a directory tree and adds each image it finds to the image DB with a newly generated image ID. However it does not return a list of image path/ID pairs, nor is the original image path stored in the image DB. Hence there is no way to know which image ID corresponds to which image file on disk. Hence addDir is useless and should be removed.

A better solution might be to add the original path to the image file to the record in the image DB and make that query-able. Seems like that would be a nice feature anyway. Without it, the user is left to keep some sort of record of what the image IDs correspond to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions