<?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 Copy files and folder into Users area , but Files are not showing in UI in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/copy-files-and-folder-into-users-area-but-files-are-not-showing/m-p/93473#M38714</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm trying to copy the whole training directory (which contains multiple sub folders and files) from my catalog volume area to each users area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From : "dbfs:/Volumes/CatalogName/schema/Training"&lt;/P&gt;&lt;P&gt;To : "dbfs:/Workspace/Users/username@domain.com/Training/"&lt;/P&gt;&lt;P&gt;I tried using&lt;/P&gt;&lt;P&gt;1) dbutils.fs.cp(sourcePath , destPath, recursive=true)&lt;/P&gt;&lt;P&gt;Its says it successfully copied but inside the UI its not visible , If I run the ls command , I can see the files and folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I also tried using the put API /api/2.0/dbfs/put&amp;nbsp;&lt;/P&gt;&lt;P&gt;its the same it says it successful but the files are not visible in the UI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way other than UI, because need to copy the folders to 50 users area ? Can't do it manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 16:00:12 GMT</pubDate>
    <dc:creator>rkshanmugaraja</dc:creator>
    <dc:date>2024-10-10T16:00:12Z</dc:date>
    <item>
      <title>Copy files and folder into Users area , but Files are not showing in UI</title>
      <link>https://community.databricks.com/t5/data-engineering/copy-files-and-folder-into-users-area-but-files-are-not-showing/m-p/93473#M38714</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I'm trying to copy the whole training directory (which contains multiple sub folders and files) from my catalog volume area to each users area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From : "dbfs:/Volumes/CatalogName/schema/Training"&lt;/P&gt;&lt;P&gt;To : "dbfs:/Workspace/Users/username@domain.com/Training/"&lt;/P&gt;&lt;P&gt;I tried using&lt;/P&gt;&lt;P&gt;1) dbutils.fs.cp(sourcePath , destPath, recursive=true)&lt;/P&gt;&lt;P&gt;Its says it successfully copied but inside the UI its not visible , If I run the ls command , I can see the files and folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I also tried using the put API /api/2.0/dbfs/put&amp;nbsp;&lt;/P&gt;&lt;P&gt;its the same it says it successful but the files are not visible in the UI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way other than UI, because need to copy the folders to 50 users area ? Can't do it manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 16:00:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/copy-files-and-folder-into-users-area-but-files-are-not-showing/m-p/93473#M38714</guid>
      <dc:creator>rkshanmugaraja</dc:creator>
      <dc:date>2024-10-10T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy files and folder into Users area , but Files are not showing in UI</title>
      <link>https://community.databricks.com/t5/data-engineering/copy-files-and-folder-into-users-area-but-files-are-not-showing/m-p/93695#M38745</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do You want to use dbfs location on purpose, or You want to upload the training notebooks to Workspace/users location?&amp;nbsp;The reason I'm asking is those are two different locations,&amp;nbsp;although both are related to file management in Databricks. (see:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/files/index.html" target="_blank"&gt;https://docs.databricks.com/en/files/index.html&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If You want to import directory &lt;STRONG&gt;to Workspace/users&lt;/STRONG&gt;, one way to go would be using &lt;STRONG&gt;databricks cli&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It is a simple rest api wrapper, so it is easier to handle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps would be to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Install databricks cli&lt;/EM&gt; – You can use legacy version using &lt;EM&gt;pip install databricks-cli&lt;/EM&gt; or download latest version using manual provided here: &lt;A href="https://docs.databricks.com/en/dev-tools/cli/install.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/cli/install.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Configure the connection settings using &lt;EM&gt;databricks configure – &lt;/EM&gt;easiest way would be to provide host and access token&lt;/LI&gt;&lt;LI&gt;Use &lt;EM&gt;databricks workspace import_dir&lt;/EM&gt; command to import directory from Your local maschine to Workspace/users locations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Rado.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 10:22:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/copy-files-and-folder-into-users-area-but-files-are-not-showing/m-p/93695#M38745</guid>
      <dc:creator>radothede</dc:creator>
      <dc:date>2024-10-13T10:22:42Z</dc:date>
    </item>
  </channel>
</rss>

