{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import shutil\nimport os","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-01-01T00:42:00.91043Z","iopub.execute_input":"2023-01-01T00:42:00.910982Z","iopub.status.idle":"2023-01-01T00:42:00.940131Z","shell.execute_reply.started":"2023-01-01T00:42:00.910852Z","shell.execute_reply":"2023-01-01T00:42:00.939101Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"shutil.make_archive('./Ex/Test', format='zip', root_dir='/kaggle/input/rsna-breast-cancer-detection/test_images/10008')","metadata":{"execution":{"iopub.status.busy":"2023-01-01T01:31:43.687316Z","iopub.execute_input":"2023-01-01T01:31:43.687815Z","iopub.status.idle":"2023-01-01T01:31:44.262925Z","shell.execute_reply.started":"2023-01-01T01:31:43.687778Z","shell.execute_reply":"2023-01-01T01:31:44.26171Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"dir_main='/kaggle/input/rsna-breast-cancer-detection/train_images/'\ndir_folders=os.listdir(dir_main)\ndir_folders.sort()","metadata":{"execution":{"iopub.status.busy":"2023-01-01T01:26:45.054238Z","iopub.execute_input":"2023-01-01T01:26:45.055124Z","iopub.status.idle":"2023-01-01T01:26:45.213931Z","shell.execute_reply.started":"2023-01-01T01:26:45.055088Z","shell.execute_reply":"2023-01-01T01:26:45.21307Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"for item in dir_folders[0:20] :\n    readdir='/kaggle/input/rsna-breast-cancer-detection/train_images/'+item\n    savedir='./Ex/'+item\n    shutil.make_archive(savedir, format='zip', root_dir=readdir)\n    print(item)","metadata":{"execution":{"iopub.status.busy":"2023-01-01T01:26:57.705379Z","iopub.execute_input":"2023-01-01T01:26:57.705828Z","iopub.status.idle":"2023-01-01T01:27:29.062487Z","shell.execute_reply.started":"2023-01-01T01:26:57.705792Z","shell.execute_reply":"2023-01-01T01:27:29.061465Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"shutil.make_archive('All', format='zip', root_dir='/kaggle/working/Ex')","metadata":{"execution":{"iopub.status.busy":"2023-01-01T01:25:18.154892Z","iopub.execute_input":"2023-01-01T01:25:18.155434Z","iopub.status.idle":"2023-01-01T01:25:18.163035Z","shell.execute_reply.started":"2023-01-01T01:25:18.155396Z","shell.execute_reply":"2023-01-01T01:25:18.161744Z"},"trusted":true},"execution_count":null,"outputs":[]}]}