<?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 Re: Why is c:\Temp1 not a folder? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281570#M21709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is disconcerting because if there is no corresponding escape sequence, the string is passed along unmodified. The escape sequences are case sensitive, just to add to the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;gt;&amp;gt;&amp;gt; print "C:\TEMP&amp;nbsp; C:\temp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;C:\TEMP&amp;nbsp; C:&amp;nbsp;&amp;nbsp;&amp;nbsp; emp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Here's the help page I always refer people to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/01m1/01m10000000s000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/01m1/01m10000000s000000.htm"&gt;ArcGIS Help 10.2 - Paths explained: Absolute, relative, UNC, and URL&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 15:47:19 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-08-14T15:47:19Z</dc:date>
    <item>
      <title>Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281564#M21703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Defined a Parameter as data type folder and put in c:\Temp1 which results in this error message? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File "R:\Karto\zGIS\Projekte\MaP_FFH_Richtlinie_Toolentwicklung\python\FangenSymDiff.py", line 50, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToShapefile_conversion(Aenderung_MToS, Aenderung_MToS_CopyFeatures)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\conversion.py", line 2550, in FeatureClassToShapefile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Fehler bei Ausführung. Parameter sind ungültig.&lt;/P&gt;&lt;P&gt;ERROR 000840: Der Wert ist kein(e) Ordner.&lt;/P&gt;&lt;P&gt;Fehler beim Ausführen von (FeatureClassToShapefile).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281564#M21703</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-08-13T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281565#M21704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"c:\temp1"&lt;/P&gt;&lt;P&gt;must be written in raw format&lt;/P&gt;&lt;P&gt;r"c:\temp1"&lt;/P&gt;&lt;P&gt;with double backslashes&lt;/P&gt;&lt;P&gt;"c:\\temp1"&lt;/P&gt;&lt;P&gt;or with forward slashes&lt;/P&gt;&lt;P&gt;"c:/temp1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course this assumes you have a folder of this name in the first place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281565#M21704</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-13T13:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281566#M21705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;the script is used in the toolbox Folder as Parameter (Folder Data Type) - so the input there sould be right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 13:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281566#M21705</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-08-13T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281567#M21706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never assume and always convert path selections&lt;/P&gt;&lt;P&gt;aPath = aPath.replace("\\",:/")&lt;/P&gt;&lt;P&gt;when I select aPath from a tool within Arctoolbox...just incorporate within your script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281567#M21706</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-13T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281568#M21707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, why .replace("\\",:/")?&lt;/P&gt;&lt;P&gt;Isn't it old, new?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281568#M21707</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-08-13T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281569#M21708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in python the backslash is used as a literal...meaning if you want a backslash you have to preceed the backslash you want with another one (check python documentation), so the expression I gave you means "replace the backslash with a forward slash"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281569#M21708</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-13T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281570#M21709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is disconcerting because if there is no corresponding escape sequence, the string is passed along unmodified. The escape sequences are case sensitive, just to add to the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;gt;&amp;gt;&amp;gt; print "C:\TEMP&amp;nbsp; C:\temp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;C:\TEMP&amp;nbsp; C:&amp;nbsp;&amp;nbsp;&amp;nbsp; emp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Here's the help page I always refer people to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/01m1/01m10000000s000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/01m1/01m10000000s000000.htm"&gt;ArcGIS Help 10.2 - Paths explained: Absolute, relative, UNC, and URL&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281570#M21709</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-08-14T15:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281571#M21710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, did you mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aPath = aPath.replace("\\","/")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281571#M21710</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-08-14T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281572#M21711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally, I always use one of the following methods and don't have any trouble anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. put an r in front of the path and it will be interpreted literally.&lt;/P&gt;&lt;P&gt;path = r"C:\Temp1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. os.path.join() is great also, especially for constructing dynamic paths because you can pass variables as arguments.&amp;nbsp; Also good if cross platform considerations are an issue&lt;/P&gt;&lt;P&gt;path = os.path.join("C:","Temp1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. also good for dynamic paths, because you can through variables in for the directory names:&lt;/P&gt;&lt;P&gt;path = r"{0}\{1}".format("C:","Temp1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. finally, it's not very concise, but you can always use os.sep&lt;/P&gt;&lt;P&gt;path = "C:" +os.sep+"Temp1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 16:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281572#M21711</guid>
      <dc:creator>AdamCox1</dc:creator>
      <dc:date>2014-08-14T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is c:\Temp1 not a folder?</title>
      <link>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281573#M21712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very helpful, thanks.&lt;/P&gt;&lt;P&gt;To tell you the truth, there was no path problem, I used two times one input parameter &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 08:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-is-c-temp1-not-a-folder/m-p/281573#M21712</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-08-15T08:25:55Z</dc:date>
    </item>
  </channel>
</rss>

