<?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: How to get the files with a prefix in Pyspark from s3 bucket? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-get-the-files-with-a-prefix-in-pyspark-from-s3-bucket/m-p/24424#M16970</link>
    <description>&lt;P&gt;You are referencing a FileInfo object when calling&amp;nbsp;&lt;/P&gt;&lt;P&gt;.startswith()&lt;/P&gt;&lt;P&gt;and not a string.&lt;/P&gt;&lt;P&gt;The filename is a property of the&amp;nbsp;&lt;/P&gt;&lt;P&gt;FileInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;object, so&amp;nbsp;this  should work &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;filename.name.startswith('cop_ ')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;should work.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 16:23:05 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-15T16:23:05Z</dc:date>
    <item>
      <title>How to get the files with a prefix in Pyspark from s3 bucket?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-the-files-with-a-prefix-in-pyspark-from-s3-bucket/m-p/24423#M16969</link>
      <description>&lt;P&gt;I have different files in my s3. Now I want to get the files which starts with&amp;nbsp;cop_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:22:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-the-files-with-a-prefix-in-pyspark-from-s3-bucket/m-p/24423#M16969</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-15T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the files with a prefix in Pyspark from s3 bucket?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-the-files-with-a-prefix-in-pyspark-from-s3-bucket/m-p/24424#M16970</link>
      <description>&lt;P&gt;You are referencing a FileInfo object when calling&amp;nbsp;&lt;/P&gt;&lt;P&gt;.startswith()&lt;/P&gt;&lt;P&gt;and not a string.&lt;/P&gt;&lt;P&gt;The filename is a property of the&amp;nbsp;&lt;/P&gt;&lt;P&gt;FileInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;object, so&amp;nbsp;this  should work &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;filename.name.startswith('cop_ ')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;should work.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:23:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-the-files-with-a-prefix-in-pyspark-from-s3-bucket/m-p/24424#M16970</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-15T16:23:05Z</dc:date>
    </item>
  </channel>
</rss>

