Determines if the path points to a valid directory with no files.

Syntax

IsDirectoryEmpty = SRP_Path("IsDirectoryEmpty", Path)

Parameters

ParameterDescription
PathA path without command line parameters.

Returns

1 If the path points to a valid directory with no files.

Remarks

The IsDirectoryEmpty service determines if the directory is both valid and devoid of any files. This is includes invisible system files. So, even if a directory appears empty in Windows Explorer, this will return 0 if there are any files whatsoever in the directory.

Example

Result1 = SRP_Path("IsDirectoryEmpty", "C:\Windows")
Result2 = SRP_Path("IsDirectoryEmpty", "C:\MyEmptyDirectory")

Result1 will be 0. Result2 will be 1, assuming it is truly empty.

See Also

IsDirectory, IsNetworkPath, IsRelative, IsRoot, IsSameRoot, IsSystemFolder, IsUNC, IsURL

  • No labels