<?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: Python os.listdir() behavior difference between 15.4LTS and 16.4LTS DBRs in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127866#M48112</link>
    <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2025 04:37:51 GMT</pubDate>
    <dc:creator>nopal1</dc:creator>
    <dc:date>2025-08-09T04:37:51Z</dc:date>
    <item>
      <title>Python os.listdir() behavior difference between 15.4LTS and 16.4LTS DBRs</title>
      <link>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127447#M47973</link>
      <description>&lt;P&gt;We found that when using os.listdir() in Databricks notebooks to list files stored in the &lt;STRONG&gt;Workspace (i.e., alongside the notebook, not in DBFS)&lt;/STRONG&gt;, file extensions were missing in Databricks Runtime 14.3 LTS and 15.4 LTS, but appeared correctly in 16.4 LTS.&lt;/P&gt;&lt;P&gt;For example &lt;STRONG&gt;os.listdir('.')&lt;/STRONG&gt; would return the following code for the different runtimes:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; os.listdir('.') # DBR 14.3LTS, DBR 15.4LTS
['notebookA', 'fileB', 'notebookc']

&amp;gt;&amp;gt;&amp;gt; os.listdir('.') # DBR 16.4LTS, Serverless compute
['notebookA.sql', 'fileB.py', 'notebookc.ipynb']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;On the code level we can handle this, but I'd like to understand and/or track down this breaking change between the different runtimes.&lt;/P&gt;&lt;P&gt;Can you help me with the reason?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 11:26:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127447#M47973</guid>
      <dc:creator>nopal1</dc:creator>
      <dc:date>2025-08-05T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python os.listdir() behavior difference between 15.4LTS and 16.4LTS DBRs</title>
      <link>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127743#M48065</link>
      <description>&lt;P&gt;This is expected and changed in DBR16.2:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/release-notes/runtime/16.2#notebooks-are-supported-as-workspace-files" target="_self"&gt;In Databricks Runtime 16.2 and above, notebooks are supported as workspace files.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 22:40:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127743#M48065</guid>
      <dc:creator>cgrant</dc:creator>
      <dc:date>2025-08-07T22:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python os.listdir() behavior difference between 15.4LTS and 16.4LTS DBRs</title>
      <link>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127866#M48112</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 04:37:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/python-os-listdir-behavior-difference-between-15-4lts-and-16/m-p/127866#M48112</guid>
      <dc:creator>nopal1</dc:creator>
      <dc:date>2025-08-09T04:37:51Z</dc:date>
    </item>
  </channel>
</rss>

