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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.