<?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: Defining if a parquet file exists in a Notebook in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4170489#M5501</link>
    <description>&lt;P&gt;Thanks for this, but they didn't work as I needed to use wildcards in my pathway.&amp;nbsp; However this worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import glob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;search_pattern = &lt;SPAN class=""&gt;'/root_folder/*/*/*/target_file.txt'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;files = glob.glob(search_pattern)&lt;BR /&gt;if files:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(f"File found: {files[0]}")&lt;BR /&gt;else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("File not found.")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 12:12:26 GMT</pubDate>
    <dc:creator>MisterSmith</dc:creator>
    <dc:date>2024-09-24T12:12:26Z</dc:date>
    <item>
      <title>Defining if a parquet file exists in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4166894#M5472</link>
      <description>&lt;P&gt;All&lt;/P&gt;&lt;P&gt;I need to check if a parquet file exists before running some code.&amp;nbsp; Is there a way of checking if a file exists in a notebook.&amp;nbsp; I just need it to return a true or false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 09:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4166894#M5472</guid>
      <dc:creator>MisterSmith</dc:creator>
      <dc:date>2024-09-23T09:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Defining if a parquet file exists in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4168376#M5487</link>
      <description>&lt;P&gt;if you are using python, you could read this website.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freecodecamp.org/news/how-to-check-if-a-file-exists-in-python/" target="_blank"&gt;https://www.freecodecamp.org/news/how-to-check-if-a-file-exists-in-python/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 21:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4168376#M5487</guid>
      <dc:creator>Houston-ho</dc:creator>
      <dc:date>2024-09-23T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Defining if a parquet file exists in a Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4170489#M5501</link>
      <description>&lt;P&gt;Thanks for this, but they didn't work as I needed to use wildcards in my pathway.&amp;nbsp; However this worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Import glob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;search_pattern = &lt;SPAN class=""&gt;'/root_folder/*/*/*/target_file.txt'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;files = glob.glob(search_pattern)&lt;BR /&gt;if files:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(f"File found: {files[0]}")&lt;BR /&gt;else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("File not found.")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 12:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Defining-if-a-parquet-file-exists-in-a-Notebook/m-p/4170489#M5501</guid>
      <dc:creator>MisterSmith</dc:creator>
      <dc:date>2024-09-24T12:12:26Z</dc:date>
    </item>
  </channel>
</rss>

