Determines if the path points to a valid directory with no files.
IsDirectoryEmpty = SRP_Path("IsDirectoryEmpty", Path) |
Parameter | Description |
---|---|
Path | A path without command line parameters. |
1 If the path points to a valid directory with no files.
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.
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.
IsDirectory, IsNetworkPath, IsRelative, IsRoot, IsSameRoot, IsSystemFolder, IsUNC, IsURL