Directory.DeleteEmptySubdirectories Method (KernelTransaction, String, Boolean, PathFormat)
Click or drag to resize
DirectoryDeleteEmptySubdirectories Method (KernelTransaction, String, Boolean, PathFormat)
[AlphaFS] Deletes empty subdirectories from the specified directory.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void DeleteEmptySubdirectories(
	KernelTransaction transaction,
	string path,
	bool recursive,
	PathFormat pathFormat
)

Parameters

transaction
Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction.
path
Type: SystemString
The name of the directory to remove empty subdirectories from.
recursive
Type: SystemBoolean
deletes empty subdirectories from this directory and its subdirectories.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions
ExceptionCondition
ArgumentExceptionThe path parameter contains invalid characters, is empty, or contains only white spaces.
ArgumentNullException
ArgumentNullException
See Also