slack importer: Quiet the unzip command.

This commit is contained in:
Rhea Parekh
2018-01-08 03:23:24 +05:30
committed by showell
parent 4019a456d1
commit 24a86a524b

View File

@@ -280,7 +280,7 @@ def channels_to_zerver_stream(slack_data_dir: str, realm_id: int, added_users: A
def do_convert_data(slack_zip_file: str, realm_name: str, output_dir: str) -> None:
slack_data_dir = slack_zip_file.replace('.zip', '')
zip_file_dir = os.path.dirname(slack_data_dir)
subprocess.check_call(['unzip', slack_zip_file, '-d', zip_file_dir])
subprocess.check_call(['unzip', '-q', slack_zip_file, '-d', zip_file_dir])
# with zipfile.ZipFile(slack_zip_file, 'r') as zip_ref:
# zip_ref.extractall(slack_data_dir)