<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>path Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/path/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/path/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Fri, 15 Feb 2019 14:23:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>path Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/path/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Filter by file size, name, date for Amazon / Azure Storage SSIS Task</title>
		<link>https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Fri, 21 Jul 2017 14:50:47 +0000</pubDate>
				<category><![CDATA[SSIS Amazon Storage Task]]></category>
		<category><![CDATA[SSIS Azure Blob Storage Task]]></category>
		<category><![CDATA[SSIS Tips & How-Tos]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[ssis amazon storage task]]></category>
		<category><![CDATA[ssis azure storage task]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<guid isPermaLink="false">http://zappysys.com/blog/?p=1590</guid>

					<description><![CDATA[<p>Introduction Sometimes you may need to make an advanced filtering on file path, file date, size etc in SSIS Amazon S3 Task or SSIS Azure Blob Storage Task . For example, you have a directory &#8220;Customers&#8220;, which contains client directories. Each of them contains a directory named &#8220;Invoices&#8220;, which is partitioned by year. E.g. &#8220;Customers/Microsoft/Invoices/2015&#8221;. So [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/">Filter by file size, name, date for Amazon / Azure Storage SSIS Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png"><img decoding="async" class="alignleft wp-image-1897" src="//zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png" alt="" width="90" height="90" srcset="https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip.png 180w, https://zappysys.com/blog/wp-content/uploads/2016/06/ssis-tip-150x150.png 150w" sizes="(max-width: 90px) 100vw, 90px" /></a></p>
<h2>Introduction</h2>
<p>Sometimes you may need to make an advanced filtering on file path, file date, size etc in <a href="https://zappysys.com/products/ssis-powerpack/ssis-amazon-s3-task/" target="_blank" rel="noopener">SSIS Amazon S3 Task</a> or <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">SSIS Azure Blob Storage Task</a> . For example, you have a directory &#8220;<em>Customers</em>&#8220;, which contains client directories. Each of them contains a directory named &#8220;<em>Invoices</em>&#8220;, which is partitioned by year. E.g. &#8220;Customers/Microsoft/Invoices/2015&#8221;. So if you want to get <em>all</em> invoices of <em>all</em> customers of <em>all</em> years, use <em>Advanced Filter &amp; Sorting </em>option and configure <em>Where</em> clause to use wildcards (*) like this:</p>
<div id="attachment_1591" style="width: 693px" class="wp-caption alignnone"><a href="//zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-1591" class="wp-image-1591 size-full" src="//zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg" alt="SSIS Amazon/Azure Storage Task – To get all invoices of all customers of all years, use Where clause FullPath LIKE 'Customers/*/Invoices/*'" width="683" height="665" srcset="https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list.jpg 683w, https://zappysys.com/blog/wp-content/uploads/2017/07/ssis-amazon-storage-task-and-azure-storage-task-to-get-file-list-300x292.jpg 300w" sizes="(max-width: 683px) 100vw, 683px" /></a><p id="caption-attachment-1591" class="wp-caption-text">SSIS Amazon/Azure Storage Task – To get all invoices of all customers of all years, use this Where clause: <em>FullPath LIKE &#8216;Customers/*/Invoices/*&#8217;</em></p></div>
<p>&nbsp;</p>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes it is referred to as <abbr title="Business Intelligence Development Studio">BIDS</abbr> or <abbr title="SQL Server Data Tools">SSDT</abbr> (<a href="https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt" target="_blank" rel="noopener">download it from the Microsoft site</a>).</li>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <a href="https://zappysys.zendesk.com/hc/en-us/articles/360035974593" target="_blank" rel="noopener">Read this article</a>, if you are planning to deploy packages to a server and schedule their execution later.</li>
</ol></div>
<p>&nbsp;</p>
<h2><span id="Delete_Multiple_S3_files_8211Using_Advanced_Search_8211_Regex_SQL_Expression">Using Advanced Search – Regex / SQL Expression (Filter by file date, size, name)</span></h2>
<p>Sometimes it’s necessary to filter file based on advanced attributes such as file Age (How old), File Size, Multiple File Patterns (e.g. Delete *.zip, *.gz, *.rar in one action)</p>
<p>You can check <a href="https://zappysys.com/blog/ssis-delete-amazon-s3-file-folder-bucket/">this link</a> or <a href="https://zappysys.com/blog/get-list-of-files-and-folders-in-ssis-for-looping/">this link</a> for more information. For <a href="https://zappysys.com/products/ssis-powerpack/ssis-azure-blob-storage-task/" target="_blank" rel="noopener">Azure Blob Storage Task</a> its almost same UI.</p>
<p>You can use Advanced Tab to filter further. First supply primary filter on Source Tab (e.g. mybucket/*.* ) and then supply your advanced filter (e.g. you can exclude *.exe and *.msi file from your delete list as below screenshot, also only delete files between 1000 and 50000 bytes in file size).</p>
<p>&nbsp;</p>
<div id="attachment_4904" style="width: 612px" class="wp-caption alignnone"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-4904" class="wp-image-4904 size-full" style="border: 0px; max-width: 100%; height: auto; box-shadow: rgba(0, 0, 0, 0.176) 0px 1px 2px;" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png" alt="Delete Amazon S3 File (Multiple) using Wildcard pattern" width="602" height="360" data-attachment-id="4904" data-permalink="https://zappysys.com/blog/ssis-delete-amazon-s3-file-folder-bucket/ssis-delete-amazons3-file-multiple/#main" data-orig-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=602%2C360&amp;ssl=1" data-orig-size="602,360" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ssis-delete-amazons3-file-multiple" data-image-description="&lt;p&gt;Delete Amazon S3 File (Multiple) using Wildcard pattern&lt;/p&gt;" data-medium-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=300%2C179&amp;ssl=1" data-large-file="https://i2.wp.com/zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png?fit=602%2C360&amp;ssl=1" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple.png 602w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-delete-amazons3-file-multiple-300x179.png 300w" sizes="(max-width: 602px) 100vw, 602px" /></a><p id="caption-attachment-4904" class="wp-caption-text">Select / Delete Amazon S3 File (Multiple) using Wildcard pattern</p></div>
<p>&nbsp;</p>
<div class="wp-caption alignnone">
<div style="width: 678px" class="wp-caption alignnone"><img loading="lazy" decoding="async" src="https://i2.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/amazon-s3-task/amazon-s3-file-file-advanced-search-regx-pattern.png?zoom=1.100000023841858&amp;resize=668%2C534&amp;ssl=1" srcset="https://i2.wp.com/zappysys.com/onlinehelp/ssis-powerpack/scr/images/amazon-s3-task/amazon-s3-file-file-advanced-search-regx-pattern.png?zoom=1.100000023841858&amp;resize=668%2C534&amp;ssl=1" alt="Advanced Search in SSIS Amazon S3 Task - Use Regular Expression Patterns, SQL like expression for Sort / Filter" width="668" height="534" /><p class="wp-caption-text">Advanced Search in SSIS Amazon S3 Task – Use Regular Expression Patterns, SQL like expression for Sort / Filter</p></div>
<p class="wp-caption-text">
</div>
</p><pre class="crayon-plain-tag">//////////////////////////////
Examples:
//////////////////////////////
AgeInDays &lt; 5  //Get files created in last 5 days
LastEditInDays &gt; 3 //Get files modified before 3 days
AgeInDays &gt; 10 AND LastEditInDays &lt; 3  //Get files created before 10 days and modified in last 3 days
Size &lt; 1024  //Get files where File size is less than 1024 bytes
CreationDate BETWEEN #2015-01-01# AND #2015-01-01#  
Name IN ('File1.txt', 'Download.msi')
FullPath LIKE 'mybucket\somefolder\month_*')
Extension IN ('.txt','.csv')
LastModifiedDate &gt; #2013-01-01T16:00:00#
IsReadOnly = True
/////////////////////////////////////////
//Supported Columns for expression:
/////////////////////////////////////////
Name, FullPath, Extension, FolderPath, AgeInDays, LastEditInDays, Size, CreationDate, CreationDateUtc, LastModifiedDate, LastModifiedDateUtc, IsReadOnly</pre><p>
&nbsp;</p>
<h3><span id="Delete_Amazon_S3_files_older_than_X_days">Select Amazon S3 files older than X days</span></h3>
<p>If you like to select / delete files older than certain days then use below technique.<br />
<pre class="crayon-plain-tag">AgeInDays &gt; 10</pre>
<ol>
<li>First Specify primary search criteria on Source tab</li>
<li>Go to Advanced Filter Tab and specify Following Pattern in <strong>Where</strong> Textbox (For example delete Files older than 10 days )
<div id="crayon-5c66c6b62f52c668162370" class="crayon-syntax crayon-theme-vs2012 crayon-font-courier-new crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover">
<div class="crayon-plain-wrap"></div>
</div>
</li>
</ol>
<h2></h2>
<p>The post <a href="https://zappysys.com/blog/advanced-path-filtering-for-amazon-azure-storage-ssis-task/">Filter by file size, name, date for Amazon / Azure Storage SSIS Task</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
