<?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>question Re: Lists3 processor to fetch only one layer of subfolders in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Lists3-processor-to-fetch-only-one-layer-of-subfolders/m-p/397524#M249881</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106156"&gt;@Ytch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi is designed to move data and the&amp;nbsp;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.aws.s3.ListS3/" target="_blank" rel="noopener"&gt;ListS3&lt;/A&gt;&amp;nbsp;processor is designed to list s3 objects/files and not directories.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;On the downstream side, NiFi does not have a processor that just create directories.&amp;nbsp; Many out processors will create a missing directory if content is to be written must be written to a directory path that does not exist on the target.&amp;nbsp; But without content those processor will not create any directories.&lt;BR /&gt;&lt;BR /&gt;I am clear on what yoru use case is here, but based on yoru description it is not something any of the stock processors would do.&amp;nbsp; You would need to write something custom (either your own processor or some custom script you can execute via aNiFi scripting processor).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 21:16:24 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-11-14T21:16:24Z</dc:date>
    <item>
      <title>Lists3 processor to fetch only one layer of subfolders</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Lists3-processor-to-fetch-only-one-layer-of-subfolders/m-p/397516#M249878</link>
      <description>&lt;P&gt;I have a folder in S3 bucket let us say Test/&lt;BR /&gt;&lt;BR /&gt;Now the Test folder has multiple sub folders and each of these subfolders have multiple files.&lt;BR /&gt;&lt;BR /&gt;Now I want to list only the sub folder names within the Test folder and I don't want the names of contents within these sub folders.&lt;BR /&gt;&lt;BR /&gt;I configured the processor like this:&amp;nbsp;&lt;BR /&gt;prefix: Test/&lt;BR /&gt;With this configuration, I get all the subfolders along with their contents.&lt;BR /&gt;&lt;BR /&gt;When I give the delimiter as /, then I don't get any result.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 14:20:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Lists3-processor-to-fetch-only-one-layer-of-subfolders/m-p/397516#M249878</guid>
      <dc:creator>Ytch</dc:creator>
      <dc:date>2024-11-14T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lists3 processor to fetch only one layer of subfolders</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Lists3-processor-to-fetch-only-one-layer-of-subfolders/m-p/397524#M249881</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106156"&gt;@Ytch&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi is designed to move data and the&amp;nbsp;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.processors.aws.s3.ListS3/" target="_blank" rel="noopener"&gt;ListS3&lt;/A&gt;&amp;nbsp;processor is designed to list s3 objects/files and not directories.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;On the downstream side, NiFi does not have a processor that just create directories.&amp;nbsp; Many out processors will create a missing directory if content is to be written must be written to a directory path that does not exist on the target.&amp;nbsp; But without content those processor will not create any directories.&lt;BR /&gt;&lt;BR /&gt;I am clear on what yoru use case is here, but based on yoru description it is not something any of the stock processors would do.&amp;nbsp; You would need to write something custom (either your own processor or some custom script you can execute via aNiFi scripting processor).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 21:16:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Lists3-processor-to-fetch-only-one-layer-of-subfolders/m-p/397524#M249881</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-11-14T21:16:24Z</dc:date>
    </item>
  </channel>
</rss>

