Skip to content

Commit 56bc0bd

Browse files
committed
fix use of folders
1 parent 9ffa22b commit 56bc0bd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

guide/03-the-gis/accessing-and-creating-content.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,8 @@
14921492
" 'tags':'arcgis, python, earthquake, natural disaster, emergency'}\n",
14931493
"thumbnail_path = os.path.join(data_path, \"earthquake.png\")\n",
14941494
"\n",
1495-
"earthquake_csv_item = gis.content.add(item_properties=csv_properties, data=csv_path,\n",
1495+
"root_folder = gis.content.folders.root\n",
1496+
"earthquake_csv_item = root_folder.add(item_properties=csv_properties, data=csv_path,\n",
14961497
" thumbnail = thumbnail_path)"
14971498
]
14981499
},
@@ -2325,7 +2326,7 @@
23252326
" 'tags': 'arcgis python api, pandas, csv',\n",
23262327
" 'text':ports_json,\n",
23272328
" 'type':'Feature Collection'}\n",
2328-
"ports_item = gis.content.add(ports_item_properties)\n",
2329+
"ports_item = root_folder.add(ports_item_properties)\n",
23292330
"ports_item"
23302331
]
23312332
},
@@ -2489,7 +2490,7 @@
24892490
],
24902491
"source": [
24912492
"# create new folder\n",
2492-
"gis.content.create_folder(folder='ports')"
2493+
"gis.content.folders.create_folder(folder='ports')"
24932494
]
24942495
},
24952496
{
@@ -2572,7 +2573,7 @@
25722573
}
25732574
],
25742575
"source": [
2575-
"gis.content.delete_folder(folder='ports')"
2576+
"gis.content.folders.delete_folder(folder='ports')"
25762577
]
25772578
},
25782579
{

guide/03-the-gis/accessing-and-managing-groups.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@
432432
"item_properties = {'title':'Hidden treasures',\n",
433433
" 'tags':['geocaching', 'searching', 'hikes', 'POI'],\n",
434434
" 'snippet':'Points containing treasures for geocaching activity'}\n",
435-
"fc_item = gis.content.add(item_properties, data='../../samples/05_content_publishers/data/hidden_treasures_geocaching.csv')"
435+
"root_folder = gis.content.folders.root\n",
436+
"fc_item = root_folder.add(item_properties, data='../../samples/05_content_publishers/data/hidden_treasures_geocaching.csv')"
436437
]
437438
},
438439
{

0 commit comments

Comments
 (0)