Re: "Locate" command in Python

2006-04-10 Thread BartlebyScrivener
>>45.9 mb Yikes. I keep all of my data files on a separate logical drive. I indexed only that one. I'm going to try and figure a way to store the results of os.walk(root) as a shelve, and then search it that way. In the meantime, you might try the script we were playing with in the previous thre

Re: "Locate" command in Python

2006-04-10 Thread mwt
On my system, files.cache ended up being 45.9 Mb (800,000+ lines)! Pretty fun script. I can imagine some interesting variations. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: "Locate" command in Python

2006-04-10 Thread BartlebyScrivener
This script is COOL. It should be in the next cookbook. Maybe with some tweaks and switches. Thanks again. Rick -- http://mail.python.org/mailman/listinfo/python-list

Re: "Locate" command in Python

2006-04-10 Thread BartlebyScrivener
Adonis, Cool! I'm on it. Thanks again. rpd -- http://mail.python.org/mailman/listinfo/python-list

Re: "Locate" command in Python

2006-04-10 Thread Adonis
BartlebyScrivener wrote: > How about one of these that works on Windows XP? I know there's no > files.cache, but I wonder if your script could be combined with another > function that would generate a list of paths on a Windows XP machine. > > Anyway, thanks for the script. > I wrote it on a Win

Re: "Locate" command in Python

2006-04-09 Thread BartlebyScrivener
How about one of these that works on Windows XP? I know there's no files.cache, but I wonder if your script could be combined with another function that would generate a list of paths on a Windows XP machine. Anyway, thanks for the script. -- http://mail.python.org/mailman/listinfo/python-list

Re: "Locate" command in Python

2006-04-09 Thread Adonis
mwt wrote: > Is there a function in python that does what "locate" does in a bash > shell? > > I know I could do it by using os.popen('locate'), but I'm curious if > there's a Python "native" way to go about it. Only needs to work in > Unix, but would be interesting if it was cross-platform. > >

"Locate" command in Python

2006-04-09 Thread mwt
Is there a function in python that does what "locate" does in a bash shell? I know I could do it by using os.popen('locate'), but I'm curious if there's a Python "native" way to go about it. Only needs to work in Unix, but would be interesting if it was cross-platform. Thanks. -- http://mail.p