v7labs / darwin-py

Library and commandline tool for managing datasets on darwin.v7labs.com
MIT License
115 stars 42 forks source link

[DAR-2996][External] Fixed `remove_extra` logic and added removal of empty directories #886

Closed JBWilkie closed 3 months ago

JBWilkie commented 3 months ago

Problem

The optional remove_extra feature has been in a broken state for a while due to several changes so file naming conventions in the last year

Solution

Adjusted the behaviour of the optional remove_extra pull() feature so that it removes any files and directories that would not be overwritten by the release currently being downloaded, essentially acting as a wipe of the entire images directory. However, it cannot be implemented this way in case there are difficulties downloading any file in the current release (that would result in missing files). Therefore, we:

Changelog

Fixed logic of the remove_extra feature when pulling dataset releases

linear[bot] commented 3 months ago

DAR-2996 Issue with remove_extra flag when pulling dataset releases