FolderUtils
Overview
Static helper class that provides methods for manipulating directories.
Location
- Reference: Sugar
- Namespace: Sugar.IO
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.
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.
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.
Parameters:
- FolderName: Path to a folder.
- AllFolders: Value that indicates whether subfolders search will be performed.