DoTheEvo / ANGRYsearch

Linux file search, instant results as you type
GNU General Public License v2.0
1.06k stars 93 forks source link

Crash -> IndexError: list index out of range #90

Open zDEFz opened 1 year ago

zDEFz commented 1 year ago

Trying to pass the following directories to ignore: bin/ boot/ build/ dev/ etc/ home/ lib/ lib64/ mnt/XXX/ mnt/unused/ mnt/tmp/ mnt/sdv/ mnt/secret-device/ mnt/musiclib/ mnt/nmve5n1p1/ mnt/2tb-ssd-offload/ mnt/ext-unknown/ mnt/2tb1/ mnt/2tb1b/ opt/ proc/ root/ run/ sbin/ scripts/ srv/ sys/ tmp/ usr/ var/

Upon trying to apply...

 angrysearch 
Ignoring directory: /bin
Ignoring directory: /boot
Ignoring directory: /build
Ignoring directory: /dev
Ignoring directory: /etc
Ignoring directory: /home
Ignoring directory: /lib
Ignoring directory: /lib64
Ignoring directory: /opt
Ignoring directory: /root
Ignoring directory: /run
Ignoring directory: /sbin
Ignoring directory: /scripts
Ignoring directory: /srv
Ignoring directory: /sys
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/angrysearch.py", line 247, in run
    self.crawling_drives()
  File "/usr/lib/python3.10/site-packages/angrysearch.py", line 282, in crawling_drives
    dirs[:] = self.remove_excluded_dirs(dirs, root, self.prep_excluded)
  File "/usr/lib/python3.10/site-packages/angrysearch.py", line 409, in remove_excluded_dirs
    if y[-1] == z['up']:
IndexError: list index out of range
[1]    409993 IOT instruction (core dumped)  angrysearch