<?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: FileNotFoundError: [Errno 2] No such file or directory or  IsADirectoryError: [Errno 21] Is a directory in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27353#M19227</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;To get rid of this error you can try using &lt;A target="_blank" href="https://"&gt;Python file exists&lt;/A&gt; methods to check that at least python sees the file exists or not. In other words, you can make sure that the user has indeed typed a correct path for a real existing file. If the user does not pass the full path to the file, the path is interpreted relatively to the current working directory. The current working directory usually is the directory in which you started the program. &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 06:15:37 GMT</pubDate>
    <dc:creator>paulmark</dc:creator>
    <dc:date>2020-02-20T06:15:37Z</dc:date>
    <item>
      <title>FileNotFoundError: [Errno 2] No such file or directory or  IsADirectoryError: [Errno 21] Is a directory</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27351#M19225</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have been trying to open a file on the dbfs using all different combinations:&lt;/P&gt;
&lt;P&gt;if I use the following code:&lt;/P&gt;
&lt;P&gt;with open("/dbfs/FileStore/df/Downloadedfile.csv", 'r', newline='') as f&lt;/P&gt;
&lt;P&gt;I get IsADirectoryError: [Errno 21] Is a directory&lt;/P&gt;
&lt;P&gt;with open("dbfs:/FileStore/df/Downloadedfile.csv", 'r', newline='') as f&lt;/P&gt;
&lt;P&gt;FileNotFoundError: [Errno 2] No such file or directory&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 16:36:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27351#M19225</guid>
      <dc:creator>AnaDel_Campo_Me</dc:creator>
      <dc:date>2020-01-02T16:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory or  IsADirectoryError: [Errno 21] Is a directory</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27352#M19226</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@Ana Del Campo Mendizabal &lt;/P&gt;
&lt;P&gt;There is a file explorer, &lt;/P&gt;
&lt;P&gt;Use that to verify the file is where you expect it to be. &lt;/P&gt;
&lt;P&gt;Here is a screenshot, &lt;/P&gt;
&lt;P&gt;Basically&lt;/P&gt;
&lt;P&gt;Click on Databricks on Left Navigation Panel, &lt;/P&gt;
&lt;P&gt;And then Import and Explore Data in the center of the page&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693f000007OroFAAS"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2508iB88635960857E82C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693f000007OroFAAS" alt="0693f000007OroFAAS" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 16:55:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27352#M19226</guid>
      <dc:creator>User16857282152</dc:creator>
      <dc:date>2020-01-02T16:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundError: [Errno 2] No such file or directory or  IsADirectoryError: [Errno 21] Is a directory</title>
      <link>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27353#M19227</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;To get rid of this error you can try using &lt;A target="_blank" href="https://"&gt;Python file exists&lt;/A&gt; methods to check that at least python sees the file exists or not. In other words, you can make sure that the user has indeed typed a correct path for a real existing file. If the user does not pass the full path to the file, the path is interpreted relatively to the current working directory. The current working directory usually is the directory in which you started the program. &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 06:15:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/filenotfounderror-errno-2-no-such-file-or-directory-or/m-p/27353#M19227</guid>
      <dc:creator>paulmark</dc:creator>
      <dc:date>2020-02-20T06:15:37Z</dc:date>
    </item>
  </channel>
</rss>

