<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Notebook Files Download/Export all in ArcGIS Notebooks Ideas</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-ideas/notebook-files-download-export-all/idi-p/1633821</link>
    <description>&lt;P&gt;In ArcGIS Notebooks, I run Python scripts that output data into the Notebook file structure. In the file structure, you have the option to "Select All", but you can only "Delete All."&lt;/P&gt;&lt;P&gt;I suggest that you add a "Download" button near the "Delete" button, so when you select all files, you may download all files vs having to click each file one at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nick_Creedon_0-1752751012324.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136685i0463D73E46C0EA5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nick_Creedon_0-1752751012324.png" alt="Nick_Creedon_0-1752751012324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2025 11:17:06 GMT</pubDate>
    <dc:creator>Nick_Creedon</dc:creator>
    <dc:date>2025-07-17T11:17:06Z</dc:date>
    <item>
      <title>Notebook Files Download/Export all</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/notebook-files-download-export-all/idi-p/1633821</link>
      <description>&lt;P&gt;In ArcGIS Notebooks, I run Python scripts that output data into the Notebook file structure. In the file structure, you have the option to "Select All", but you can only "Delete All."&lt;/P&gt;&lt;P&gt;I suggest that you add a "Download" button near the "Delete" button, so when you select all files, you may download all files vs having to click each file one at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nick_Creedon_0-1752751012324.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136685i0463D73E46C0EA5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nick_Creedon_0-1752751012324.png" alt="Nick_Creedon_0-1752751012324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 11:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/notebook-files-download-export-all/idi-p/1633821</guid>
      <dc:creator>Nick_Creedon</dc:creator>
      <dc:date>2025-07-17T11:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Files Download/Export all</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/notebook-files-download-export-all/idc-p/1634007#M164</link>
      <description>&lt;P&gt;You can zip up a directory using Python, but having a GUI way to do that would be cool.&lt;/P&gt;&lt;P&gt;Until that happens, you could create a &lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/use-python-code-snippets.htm" target="_self"&gt;code snippet&lt;/A&gt; and save it, to add to notebooks where you want this functionality.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import zipfile

def zip_directory(source_dir, output_zip_file):
    """
    Zips all files within a given directory into a single ZIP archive.

    Args:
        source_dir (str): The path to the directory to be zipped.
        output_zip_file (str): The name of the output ZIP file.
    """
    try:
        with zipfile.ZipFile(output_zip_file, 'w', zipfile.ZIP_DEFLATED) as zipf:
            for root, _, files in os.walk(source_dir):
                for file in files:
                    file_path = os.path.join(root, file)
                    # Calculate the relative path within the zip file
                    arcname = os.path.relpath(file_path, source_dir)
                    zipf.write(file_path, arcname)
        print(f"Successfully created '{output_zip_file}' from '{source_dir}'.")
    except Exception as e:
        print(f"Error zipping directory: {e}")

# Example usage:
source_directory_to_zip = '/arcgis/home/the_dir_to_zip'  # Replace with your directory name
output_zip_archive = "my_archive.zip"  # By default writes to your home (arcgis/ directory)


# Run the function to zip up the directory
zip_directory(source_directory_to_zip, output_zip_archive)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 19:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/notebook-files-download-export-all/idc-p/1634007#M164</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-07-17T19:11:33Z</dc:date>
    </item>
  </channel>
</rss>

