<?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: dbutils.fs.ls versus pathlib.Path in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55640#M2047</link>
    <description>&lt;P&gt;I think it will be usefull if you look at this documentation to understand difrent files and how you can interact with them:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/files/" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/files/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;there is not much to say then that&amp;nbsp;&lt;SPAN&gt;dbutils is "databricks code" that allows you to work with databricks assests more easily rather than writing your own code.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;When you run commands (not spark) in databricks, you basicaly execute it on dirver node, that is linux machine.&lt;BR /&gt;Whatever is mounted to this machine, will be avalieble for you from code that can be interpreted in machine.&lt;BR /&gt;&lt;BR /&gt;I know that some of dbutils functions has some performance boost if you want to do some massive mover or remove operation but you can achieve same thing writing your own code from scratch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you are very courious what you can find in cluster - create single user cluster, enable web terminal in databricks and launch web terminal. You will be looged as a root to cluster console, where you can explore files.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 00:38:29 GMT</pubDate>
    <dc:creator>Wojciech_BUK</dc:creator>
    <dc:date>2023-12-22T00:38:29Z</dc:date>
    <item>
      <title>dbutils.fs.ls versus pathlib.Path</title>
      <link>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55616#M2043</link>
      <description>&lt;P&gt;Hello community members,&lt;/P&gt;&lt;P&gt;The dbutils.fs.ls('/') exposes the distributed file system(DBFS) on the databricks cluster. Similary, the python library pathlib can also expose 4 files in the cluster like below:&lt;/P&gt;&lt;P&gt;from pathlib import Path&lt;/P&gt;&lt;P&gt;mypath = Path('/')&lt;/P&gt;&lt;P&gt;for item, num in mypath.iterdir():&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print(num, item)&lt;/P&gt;&lt;P&gt;How do they differ and what kind of files do they allow to work with ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 17:25:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55616#M2043</guid>
      <dc:creator>chari</dc:creator>
      <dc:date>2023-12-21T17:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.fs.ls versus pathlib.Path</title>
      <link>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55640#M2047</link>
      <description>&lt;P&gt;I think it will be usefull if you look at this documentation to understand difrent files and how you can interact with them:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/files/" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/files/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;there is not much to say then that&amp;nbsp;&lt;SPAN&gt;dbutils is "databricks code" that allows you to work with databricks assests more easily rather than writing your own code.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;When you run commands (not spark) in databricks, you basicaly execute it on dirver node, that is linux machine.&lt;BR /&gt;Whatever is mounted to this machine, will be avalieble for you from code that can be interpreted in machine.&lt;BR /&gt;&lt;BR /&gt;I know that some of dbutils functions has some performance boost if you want to do some massive mover or remove operation but you can achieve same thing writing your own code from scratch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you are very courious what you can find in cluster - create single user cluster, enable web terminal in databricks and launch web terminal. You will be looged as a root to cluster console, where you can explore files.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 00:38:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55640#M2047</guid>
      <dc:creator>Wojciech_BUK</dc:creator>
      <dc:date>2023-12-22T00:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.fs.ls versus pathlib.Path</title>
      <link>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55711#M2052</link>
      <description>&lt;P&gt;Hello Wojceich,&lt;/P&gt;&lt;P&gt;Thanks for your time but I like to correct myself a bit. The DBFS (databricks file system) is actually Azure blob storage which is mounted on databricks whereas the libraries are installed on the driver node (as you rightly pointed out!).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 09:48:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/dbutils-fs-ls-versus-pathlib-path/m-p/55711#M2052</guid>
      <dc:creator>chari</dc:creator>
      <dc:date>2023-12-24T09:48:58Z</dc:date>
    </item>
  </channel>
</rss>

