Click or drag to resize

filesAndDirectoryOperationshasFiles Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Determines whether there is any file in the directory

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static bool hasFiles(
	this DirectoryInfo di
)
Request Example View Source

Parameters

di
Type: System.IODirectoryInfo
The di.

Return Value

Type: Boolean
true if the specified di has files; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DirectoryInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also