mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix Dataset.remove_files() does not match when files are in the root of the dataset (#303)
Co-authored-by: Gabriel Lema <glema@ulta.com>
This commit is contained in:
parent
28b85028fe
commit
fbbae0b8bc
@ -214,7 +214,7 @@ class Dataset(object):
|
||||
|
||||
self._dataset_file_entries = {
|
||||
k: v for k, v in self._dataset_file_entries.items()
|
||||
if not (fnmatch(k, path) and fnmatch(k, '*/' + wildcard))}
|
||||
if not (fnmatch(k, path) and fnmatch(k if '/' in k else '/{}'.format(k), '*/' + wildcard))}
|
||||
|
||||
if verbose and org_files:
|
||||
for f in org_files:
|
||||
|
Loading…
Reference in New Issue
Block a user