[Sugar-devel] Need help with 'shutil'

Walter Bender walter.bender at gmail.com
Sat May 28 08:13:42 EDT 2016


Look here for an example:

https://github.com/sugarlabs/log-activity/blob/master/logcollect.py

-walter

On Sat, May 28, 2016 at 8:09 AM, Ütkarsh Tiwari <iamutkarshtiwari at gmail.com>
wrote:

> Hi,
>      I am trying to zip the contents of a directory using shutil but I
> am facing some issues.
>
> I want to zip the contents present inside 'root/my_folder/' directory
> to 'root/my_folder.zip'. I am unable to figure what exact commands
> shall I specify in "shutil.make_archive()" to get this done. Please
> help.
>
> Thanks,
> Utkarsh Tiwari
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
<http://www.sugarlabs.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160528/f9ed5d77/attachment.html>


More information about the Sugar-devel mailing list