I want to archive only some files in my directory. Suppose that the following directory structure:
current_dir
- current_file
audio/
- fileA
- fileB
In this case, can I archive only audio/
and fileA
from the Python script (current_file
)?
I use shutil
but the following command seems to use all the files in a specific directory.
shutil.make_archive("new_file", 'zip', dir_name)