On Sun, Nov 29, 2009 at 11:36 AM, shampavman <[email protected]> wrote:
> if anyone can confirm that something like this..
> os.system("ls > process_output.log")
> would work , it would be of really great help..
>
> Also if there are any alternatives to using os.system. I would like to
> know..
If all you want is to get a list of files of a directory, try os.listdir():
listdir(...)
listdir(path) -> list_of_strings
Return a list containing the names of the entries in the directory.
path: path of directory to list
The list is in arbitrary order. It does not include the special
entries '.' and '..' even if they are present in the directory.
Regards,
--
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers