directory class : GetDirectories() method

Description

Gets a list of subdirectories that are direct child.

Syntax

directoryInstance.GetDirectories()

Arguments

None

Return value

ClassDescription
list{directory}A list of subdirectories that are direct child.

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

list{directory} subDirectories = dir.GetDirectories();

Notes

It's a wrapper of the System.IO.DirectoryInfo.GetDirectories() method.

Please note that this method do not work recursively. It returns a list of direct children.

Links for reference

Copyright © Cooker All rights reserved.