[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Get complete, recursive file list?
From: |
Mariano Draghi |
Subject: |
Get complete, recursive file list? |
Date: |
Tue, 3 Jun 2008 14:13:47 -0300 |
Hi,
Is it possible to get the full, complete list of files of the memory
card and/or external memory of the phone?
Something along the lines of:
A:\foo
A:\foo\bar1
A:\foo\bar2
A:\xxx\yyy\a1
A:\xxx\yyy\a2
A:\xxx\yyy\a2\nnn
...
etc.
Some links [1] I found with google do mention the command
gnokii --listallfiles 'A:\*'
but it seems that command no longer exist, and I'm not sure if it did
wat I suppose it did.
I trying to use gnokii from a Python script to build a visual
representation of the filesystem in a tree. I can, of course, use the
--getfilelist switch, but that's not recursive, and apart from that,
there's no easy/obvious way to distinguish a directory from a regular
file.
So far, my idea is to use --getfielist at the root level, and for
every entry listed, say, "foo" try to --getfilelist for "foo/*". If I
get an invalid path error then it's not a directory, and so on. But it
sounds WAY too complicated / expensive / error-prone.
Can someone give me a better idea? Is there any undocumented flag /
swtich to get what I whant?
Thank's in advance for any help / tips!
Best regards,
[1] - http://www.gnokii.org/download/gnokiifs/README
--
Mariano / el cHagHi [ http://chaghi.com.ar/blog ]
PyAr - Python Argentina [http://python.org/ar ]
- Get complete, recursive file list?,
Mariano Draghi <=
- Re: Get complete, recursive file list?, Pawel Kot, 2008/06/03
- Re: Get complete, recursive file list?, Mariano Draghi, 2008/06/03
- Re: Get complete, recursive file list?, Pawel Kot, 2008/06/03
- Re: Get complete, recursive file list?, Mariano Draghi, 2008/06/03
- Re: Get complete, recursive file list?, Pawel Kot, 2008/06/03
- Re: Get complete, recursive file list?, Mariano Draghi, 2008/06/03
- Re: Get complete, recursive file list?, Pawel Kot, 2008/06/03
- Re: Get complete, recursive file list?, Uwe Grauer, 2008/06/04