Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# count files in directory and subdirectories

var countFiles = System.IO.Directory.GetFiles(sourcePath, "*.*", SearchOption.AllDirectories).Count();
Comment

c# count directories in directory and subdirectories

var countDirectories = System.IO.Directory.GetDirectories(sourcePath, "*", SearchOption.AllDirectories).Count();
Comment

PREVIOUS NEXT
Code Example
Csharp :: Raycasting to find mouseclick on Object in unity 2d games 
Csharp :: variable size in memory c# 
Csharp :: c# modify dictionary in loop 
Csharp :: conditional if statement c# programming 
Csharp :: c# convert datetime to year & month 
Csharp :: c# draw rectangle on screen 
Csharp :: destroy gameobject with tag unity 
Csharp :: linq find object from id 
Csharp :: Metadata publishing for this service is currently disabled 
Csharp :: c# linq to select even numbers 
Csharp :: exception handling in c# web api 
Csharp :: compare two strings in c# 
Csharp :: string to array c# 
Csharp :: quaternion rotation unity 
Csharp :: string c# 
Csharp :: c# obsolete class 
Csharp :: unity ui button 
Csharp :: calculator in c# 
Csharp :: print c# 
Csharp :: jagged array to 2d array c# 
Csharp :: C# 1 minute delay 
Csharp :: serenity frameword order column 
Csharp :: c# sharepoint get users from column 
Csharp :: c# window form align right bottom 
Csharp :: Options Pattern startup.cs configuration 
Csharp :: eventsource web api c# 
Csharp :: how to print to printer in c# 
Csharp :: administration 
Csharp :: convert list to datatable c# 
Csharp :: declare multiple variables in for loop C# 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =