[ubuntu-uk] Python Question

Dave Hanson dave at hansonforensics.co.uk
Fri Sep 23 14:56:46 UTC 2011


Thanks Tyler, I did look at that but saw no way to tell it to use the entire
disk.

Juanjo/Simon - Thanks, that was the only alternative I could think of but
considered it long winded if there was a sort of universal option like Tyler
suggested.


I'll probably use sys.platform then. It's not much more coding to be fair,
the docs show only 8 variations on the output for the different operating
systems. I suppose I was more interested in seeing what's possible and
trying to understand the language a bit better. Once I'm in the directory I
am querying the SQLite files so that shouldn't be platform specific from
then on I wouldn't have thought as I would use the sqlite3 python module?

Thanks again for the fast responses. I should have just posted here instead
of searching for two hours - Doh!

Best Regards,

Dave Hanson

<http://hansonforensics.co.uk>



On Fri, Sep 23, 2011 at 3:43 PM, Tyler J. Wagner <tyler at tolaris.com> wrote:

> On 2011-09-23 15:38, Dave Hanson wrote:
> > I want to search the entire disk of any OS to find the Firefox cache
> > directory. Is it even possible to do this? I don't particularly need the
> > code to do it (I don't mind if you want to share though!) What I'm really
> > after is - Am I wasting my time even trying?
>
> The problem is that you're using tools external to python, which are
> platform-dependent. Consider instead using the os.path python library.
>
> Regards,
> Tyler
>
> --
> "In a time of universal deceit, telling the truth is a revolutionary act."
>   -- George Orwell
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20110923/cbdb5723/attachment.html>


More information about the ubuntu-uk mailing list