Re: [Tutor] How to skip a single file when using shutil.make_archive()

2015-08-14 Thread Peter Otten
Anthony Papillion wrote: > I'm creating an archive of a directory using shutil.make_archive and need > to skip a single file if it is present in that directory. Is there a way > to do this or should I be looking to ZipFile to meet this need? I should not post this, especially on a tutor list, but

Re: [Tutor] How to skip a single file when using shutil.make_archive()

2015-08-14 Thread Anthony Papillion
Many thanks Ben! That is exactly what I was looking for and it's super easy. Thanks again! On Fri, Aug 14, 2015 at 5:36 PM, Ben Finney wrote: > Anthony Papillion writes: > > > I'm creating an archive of a directory using shutil.make_archive and > > need to skip a single file if it is present in

Re: [Tutor] How to skip a single file when using shutil.make_archive()

2015-08-14 Thread Ben Finney
Anthony Papillion writes: > I'm creating an archive of a directory using shutil.make_archive and > need to skip a single file if it is present in that directory. Is > there a way to do this or should I be looking to ZipFile to meet this > need? You can create a hierarchy of files the way you wan

[Tutor] How to skip a single file when using shutil.make_archive()

2015-08-14 Thread Anthony Papillion
Hello Everyone, I'm creating an archive of a directory using shutil.make_archive and need to skip a single file if it is present in that directory. Is there a way to do this or should I be looking to ZipFile to meet this need? Thanks ___ Tutor maillist