<?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>topic Error when moving content from root directory in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-moving-content-from-root-directory/m-p/838798#M3430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to move Portal items from the root directory to a new folder I create. This works when content is stored in a folder I already created but not from the root/home directory under MY CONTENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The docs say "You can move content out of folders to root by calling the &lt;CODE&gt;move()&lt;/CODE&gt; method and specifying &lt;CODE&gt;/&lt;/CODE&gt; as folder name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for folder in folders:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; folderitems = adminuser.items(folder= '/')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for item in folderitems:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item.move(folder= 'New Folder')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ValueError&lt;/SPAN&gt;: Could not locate the folder: /. Please verify that this folder exists and try again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 19:21:18 GMT</pubDate>
    <dc:creator>ChrisAdams</dc:creator>
    <dc:date>2017-12-19T19:21:18Z</dc:date>
    <item>
      <title>Error when moving content from root directory</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-moving-content-from-root-directory/m-p/838798#M3430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to move Portal items from the root directory to a new folder I create. This works when content is stored in a folder I already created but not from the root/home directory under MY CONTENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The docs say "You can move content out of folders to root by calling the &lt;CODE&gt;move()&lt;/CODE&gt; method and specifying &lt;CODE&gt;/&lt;/CODE&gt; as folder name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for folder in folders:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; folderitems = adminuser.items(folder= '/')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for item in folderitems:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item.move(folder= 'New Folder')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ValueError&lt;/SPAN&gt;: Could not locate the folder: /. Please verify that this folder exists and try again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 19:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-moving-content-from-root-directory/m-p/838798#M3430</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2017-12-19T19:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error when moving content from root directory</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-moving-content-from-root-directory/m-p/838799#M3431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 2pt 0cm;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;The answer was found in the help:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2pt 0cm;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fesri.github.io%2Farcgis-python-api%2Fapidoc%2Fhtml%2Farcgis.gis.toc.html%3Fhighlight%3Ditems%23arcgis.gis.User.items" rel="nofollow" target="_blank"&gt;http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=items#arcgis.gis.User.items&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2pt 0cm;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;For content in the root folder, use the default value of None for the folder argument.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2pt 0cm;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;This can be written as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2pt 0cm;"&gt;&lt;SPAN style="color: black; font-size: 10pt;"&gt;folderitems = adminuser.items()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 12:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-moving-content-from-root-directory/m-p/838799#M3431</guid>
      <dc:creator>ChrisAdams</dc:creator>
      <dc:date>2017-12-20T12:34:26Z</dc:date>
    </item>
  </channel>
</rss>

