removed testing variable names and added max_items to search
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 5,
"metadata": {},
"outputs": [
{
"<Item title:\"Downingtown_PA_Parcels\" type:File Geodatabase owner:api_data_owner>"
]
},
- "execution_count": 4,
+ "execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"downingtown_parcels_fgdb = [d \n",
- " for d in gis.content.search(\"*\") \n",
+ " for d in gis.content.search(\"*\", max_items=50) \n",
" if d.type == \"File Geodatabase\" \n",
" and \"Downingtown\" in d.title][0]\n",
"downingtown_parcels_fgdb"
"outputs": [],
"source": [
"# Create a working directory\n",
- "if not os.path.exists(os.path.join(cwd, \"sierra_leone\")):\n",
- " os.mkdir(os.path.join(cwd, \"sierra_leone\"))\n",
+ "if not os.path.exists(os.path.join(wd, \"sierra_leone\")):\n",
+ " os.mkdir(os.path.join(wd, \"sierra_leone\"))\n",
"\n",
"# Assign a variable to the full path of the new directory\n",
- "wd = [os.path.join(guide_dir, dir) \n",
- " for dir in os.listdir(guide_dir) \n",
+ "wd = [os.path.join(wd, dir) \n",
+ " for dir in os.listdir(wd) \n",
" if 'sierra_leone' in dir][0]"
]
},
