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)

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)

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)

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)

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)

Parameters:

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