FolderUtils

Overview

Static helper class that provides methods for manipulating directories.

Location

Class Methods


Create

Creates a new folder with specified path.

 

class method Create(FolderName: String)

 

static void Create(String FolderName)

 

static func Create(_ FolderName: String)

 

static void Create(String FolderName)

 

Shared Sub Create(FolderName As String)

Parameters:

  • FolderName: Path to a folder.

Delete

Deletes folder with specified path.

 

class method Delete(FolderName: String)

 

static void Delete(String FolderName)

 

static func Delete(_ FolderName: String)

 

static void Delete(String FolderName)

 

Shared Sub Delete(FolderName As String)

Parameters:

  • FolderName: Path to a folder.

Exists

Returns a value which indicates whether folder with specified path exists.

 

class method Exists(FolderName: String): Boolean

 

static Boolean Exists(String FolderName)

 

static func Exists(_ FolderName: String) -> Boolean

 

static Boolean Exists(String FolderName)

 

Shared Function Exists(FolderName As String) As Boolean

Parameters:

  • FolderName: Path to a folder.

GetFiles

Returns list of files in the folder with specified path. If AllFolders parameter is set to true then search will be performed in a folder and all its subfolders, otherwise only in folder itself.

 

class method GetFiles(FolderName: String; AllFolders: Boolean): array of String

 

static String[] GetFiles(String FolderName, Boolean AllFolders)

 

static func GetFiles(_ FolderName: String, _ AllFolders: Boolean) -> String...

 

static String[] GetFiles(String FolderName, Boolean AllFolders)

 

Shared Function GetFiles(FolderName As String, AllFolders As Boolean) As String()

Parameters:

  • FolderName: Path to a folder.
  • AllFolders: Value that indicates whether subfolders search will be performed.

GetFolders

Returns list of folders in the folder with specified path. If AllFolders parameter is set to true then search will be performed in a folder and all its subfolders, otherwise only in folder itself.

 

class method GetFolders(FolderName: String; AllFolders: Boolean): array of String

 

static String[] GetFolders(String FolderName, Boolean AllFolders)

 

static func GetFolders(_ FolderName: String, _ AllFolders: Boolean) -> String...

 

static String[] GetFolders(String FolderName, Boolean AllFolders)

 

Shared Function GetFolders(FolderName As String, AllFolders As Boolean) As String()

Parameters:

  • FolderName: Path to a folder.
  • AllFolders: Value that indicates whether subfolders search will be performed.