Within Files, you have a home and a samplesdata folder. Is it possible to create additional folders?
To make a single directory:
import osif not os.path.exists("/arcgis/home/newdir"😞   os.mkdir("/arcgis/home/newdir")
import os
if not os.path.exists("/arcgis/home/newdir"😞
   os.mkdir("/arcgis/home/newdir")
To make a subdirectories when none of them exist:
import osos.makedirs("/arcgis/home/non-existent-dir1/non-existent-dir2/")
os.makedirs("/arcgis/home/non-existent-dir1/non-existent-dir2/")
Thanks David - that's awesome.
Yes - you can use python code to create folders in this location.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.