Closed RustyRaptor closed 5 years ago
Ok I see that there is actually an if statement in the program that explicitly ignores snap. So something is off here. When I add /snap to bad paths though it stops.
Oh ok so the problem is it is assuming snap is in /home which isn't the case.
Ok so I fixed the issue with snap however now I am finding an even greater problem. the direntry_ok function is never returning true. I wonder what's causing this. When I don't have the snap ignore stuff in it only searches in /snap. This is so weird.
hmm it seems that it's iterating over all the mount points to run Crawl() but it never seems to run crawl in the root directory or just in /home.
Is this normal behavior or am I missing something obvious? I managed to fix it by creating a craw instance with /home right after that for loop.
for mountpoint in mountpoints:
print("Starting thread for: ", mountpoints)
exclusion_list = mountpoints[:]
exclusion_list.remove(mountpoint)
t = Crawler(mountpoint,self.index,excludes=exclusion_list)
t.start()
self.threads.append(t)
r = Crawler("/home", self.index)
r.start()
self.threads.append(r)
Is it ok/normal to discuss this in this issue or should I move this elsewhere.
Moved home folder issue to #9
??? snap seems to have symbolic links that point to themselves inside itself
who the f*ck designed this
I need to add something to prevent filesystem loops
Maybe add X levels of recursion check, I think that's how most programs solve it set it to like 4/5 at base if it goes over stop.
Switched to D and rewritten the crawling system, let me know if this still happens
Fixed because now I don't follow the symlinks anymore
It's pointless to follow them, I can find all the files anyway and using symlinks could create problems related to a crawler going from one disk to another
Linux distro Kubuntu 18.04 LTS
Runtime type Pythone
Describe the bug Console spams error codes like this.
To Reproduce Steps to reproduce the behavior: run it whilst also having a /snap directory generated by the snap package manager
Expected behavior Not to be spammed with errors. Screenshots
Other notes searching in /snap is probably a bad idea. It's like searching node modules but worse.