@DirFolders

Parent Previous Next

@DirFolders.

Creates an array of strings where each item contains the name of a folder in the directory.


Syntax.


 @DirFolders(String path; Boolean fullPath) : String[]

 


Arguments:


Example:


 //Assume this directory contains 4 folders.

 String dir := "c:\test";


 String str[] := @DirFolders(dir, True);


 //Now str[] ~ ["c:\test\folder1",

 //             "c:\test\folder2",

 //             "c:\test\folder3",

 //             "c:\test\folder4"]


 String str[] := @DirFolders(dir, False);


 //Now str[] ~ ["folder1",

 //             "folder2",

 //             "folder3",

 //             "folder4"]