<?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>Directories Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/directories/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/directories/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:22:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Find a Number of File in Directories Recursively</title>
		<link>https://www.scmgalaxy.com/tutorials/find-a-number-of-file-in-directories-recursively/</link>
					<comments>https://www.scmgalaxy.com/tutorials/find-a-number-of-file-in-directories-recursively/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 06:27:32 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Directories]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2286</guid>

					<description><![CDATA[<p>scmuser created the topic: find a number of file in directories recursively I have several directories and files underneath&#8230;how to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/find-a-number-of-file-in-directories-recursively/">Find a Number of File in Directories Recursively</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: find a number of file in directories recursively</strong><br />
I have several directories and files underneath&#8230;how to find only files from all directories&#8230;</p>
<p>any command</p>
<p><strong>rajeshkumar replied the topic: Re: find a number of file in directories recursively</strong><br />
Try following command<br />
find ./ -type f | wc -l</p>
<p>For finding only files from all directories recursively<br />
find ./ &#8211; type d | wc -l</p>
<p>For finding only directory om all directories recursively<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>opendesk replied the topic: Re: find a number of file in directories recursively</strong><br />
From DOS Command prompt, you can do:</p>
<p>dir /A-d /b /s</p>
<p>or in java, you need to do recursion. Here is a java code snippet.</p>
<p>public void visitAllFiles(File dir) {<br />
if (dir.isDirectory()) {<br />
String[] children = dir.list();</p>
<p>for (int i = 0; i < children.length; i++) {
visitAllFiles(new File(dir, children));
}
} else {
processFiles(dir);
}
}

All the best :)


<strong>rajeshkumar replied the topic: Re: find a number of file in directories recursively</strong><br />
Good Input.. Thanks a lot.</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/find-a-number-of-file-in-directories-recursively/">Find a Number of File in Directories Recursively</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/find-a-number-of-file-in-directories-recursively/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
