<div dir="ltr">Look here for an example:<div><br></div><div><a href="https://github.com/sugarlabs/log-activity/blob/master/logcollect.py">https://github.com/sugarlabs/log-activity/blob/master/logcollect.py</a><br></div><div><br></div><div>-walter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 28, 2016 at 8:09 AM, Ütkarsh Tiwari <span dir="ltr"><<a href="mailto:iamutkarshtiwari@gmail.com" target="_blank">iamutkarshtiwari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am trying to zip the contents of a directory using shutil but I<br>
am facing some issues.<br>
<br>
I want to zip the contents present inside 'root/my_folder/' directory<br>
to 'root/my_folder.zip'. I am unable to figure what exact commands<br>
shall I specify in "shutil.make_archive()" to get this done. Please<br>
help.<br>
<br>
Thanks,<br>
Utkarsh Tiwari<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font><font>Walter Bender</font></font><br><font><font>Sugar Labs</font></font></div><div><font><a href="http://www.sugarlabs.org" target="_blank"><font>http://www.sugarlabs.org</font></a></font><br><a href="http://www.sugarlabs.org" target="_blank"><font></font></a><br></div></div></div>
</div>