kwertyops
open main menu

social/hackernews

[https://news.ycombinator.com/item?id=34558081]


  ~/me $_ x = files('Music')
  ~/me $_ for item in x:
        >     if 'Rick Astley' not in x['name']:
        >         delete(x['path'])
Shouldn’t that be:

  ~/me $_ x = files('Music')
  ~/me $_ for item in x:
        >     if 'Rick Astley' not in item['name']:
        >         delete(item['path'])
?