datalad / datalad-gooey

A graphical user interface for DataLad (datalad.org)
https://docs.datalad.org/projects/gooey
Other
4 stars 6 forks source link

Recursive `drop` fails on a mac because of `.DS_Store` #247

Closed jsheunis closed 1 year ago

jsheunis commented 1 year ago

Just an FYI for Mac users, I'm sure you are already aware of the pesky .DS_Store files...

Running: Dataset('/Users/jsheunis/Documents/psyinf/Data/whatwhaaat').drop(what='all', recursive=True) failed!
Traceback (most recent call last):
  File "/Users/jsheunis/Documents/psyinf/datalad-gooey-jsh/datalad_gooey/dataladcmd_exec.py", line 159, in _cmdexec_thread
    for res in cmd(**cmdkwargs):
  File "/Users/jsheunis/opt/miniconda3/envs/meow2/lib/python3.9/site-packages/datalad/interface/utils.py", line 424, in generator_func
    raise IncompleteResultsError(
datalad.support.exceptions.IncompleteResultsError: Command did not complete successfully. 2 failed:
[{'action': 'drop',
  'message': 'cannot drop untracked content, save first',
  'parentds': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat',
  'path': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat/.DS_Store',
  'refds': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat',
  'state': 'untracked',
  'status': 'impossible',
  'type': 'file'},
 {'action': 'drop',
  'message': 'cannot drop untracked content, save first',
  'parentds': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat',
  'path': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat/derivatives/.DS_Store',
  'refds': '/Users/jsheunis/Documents/psyinf/Data/whatwhaaat',
  'state': 'untracked',
  'status': 'impossible',
  'type': 'file'}]