how to call external functions from python

Rainer Deyke root at rainerdeyke.com
Wed Nov 28 21:44:55 EST 2001


"weeang" <weeang at hotmail.com> wrote in message
news:c506ca7a.0111281823.42781e9f at posting.google.com...
> My general objectives are:
> To zip all files in a directory and copy the zipped file to a remote
> directory.
>
> The design is as follows, i.e. simulating a ms outlook functionality:
> 1)Zip all the files in a local 'inbox' directory
> 2)Move the zipped file to local 'outbox' directory
> 3)Copy the zipped file to a remote directory
> 4)Moving the zipped file to a local 'sent' directory
>
> I hope I have made myself clear??

Not really.  It is not clear why you want to move the zipped files to the
'outbox' directory and later move them to the 'sent' directory (which is not
listed in your objectives).  Maybe you are refering to different files here?

Regardless, the modules 'os' and 'zipfile' should have everything you need.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list