Folder

Overview

Folder related utilities.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to: String

 

constructor

Creates a new instance for a given folder path.

 

constructor(aPath: not nullable String)

 

Folder(String! aPath)

 

init(_ aPath: String)

 

Folder(String aPath)

 

Sub New(aPath As String)

Parameters:

  • aPath:

CopyContentsTo (Folder, Boolean) Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Copy the content of this folder, optionally recursively.

 

method CopyContentsTo(aNewFolder: Folder; aRecursive: Boolean)

 

void CopyContentsTo(Folder aNewFolder, Boolean aRecursive)

 

func CopyContentsTo(_ aNewFolder: Folder, _ aRecursive: Boolean)

 

void CopyContentsTo(Folder aNewFolder, Boolean aRecursive)

 

Sub CopyContentsTo(aNewFolder As Folder, aRecursive As Boolean)

Parameters:

  • aNewFolder:
  • aRecursive:

CopyContentsTo (Folder, Boolean) .NET, .NET Core 6.0, .NET Standard 2.0

 

method CopyContentsTo(aNewFolder: Folder; aRecursive: Boolean)

 

void CopyContentsTo(Folder aNewFolder, Boolean aRecursive)

 

func CopyContentsTo(_ aNewFolder: Folder, _ aRecursive: Boolean)

 

Sub CopyContentsTo(aNewFolder As Folder, aRecursive As Boolean)

Parameters:

  • aNewFolder:
  • aRecursive:

Create (Boolean) Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Creates a new folder.

 

method Create(FailIfExists: Boolean)

 

void Create(Boolean FailIfExists)

 

func Create(_ FailIfExists: Boolean)

 

void Create(Boolean FailIfExists)

 

Sub Create(FailIfExists As Boolean)

Parameters:

  • FailIfExists:

Create (Boolean) .NET, .NET Core 6.0, .NET Standard 2.0

 

method Create(FailIfExists: Boolean)

 

void Create(Boolean FailIfExists)

 

func Create(_ FailIfExists: Boolean)

 

Sub Create(FailIfExists As Boolean)

Parameters:

  • FailIfExists:

Create (Folder, Boolean): Folder .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Creates a new folder.

 

class method Create(aFolderName: Folder; FailIfExists: Boolean): Folder

 

static Folder Create(Folder aFolderName, Boolean FailIfExists)

 

static func Create(_ aFolderName: Folder, _ FailIfExists: Boolean) -> Folder

 

static Folder Create(Folder aFolderName, Boolean FailIfExists)

 

Shared Function Create(aFolderName As Folder, FailIfExists As Boolean) As Folder

Parameters:

  • aFolderName:
  • FailIfExists:

CreateFile (String, Boolean): File Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Create a file in thsi folder.

 

method CreateFile(FileName: String; FailIfExists: Boolean): File

 

File CreateFile(String FileName, Boolean FailIfExists)

 

func CreateFile(_ FileName: String, _ FailIfExists: Boolean) -> File

 

File CreateFile(String FileName, Boolean FailIfExists)

 

Function CreateFile(FileName As String, FailIfExists As Boolean) As File

Parameters:

  • FileName:
  • FailIfExists:

CreateFile (String, Boolean): File .NET, .NET Core 6.0, .NET Standard 2.0

 

method CreateFile(FileName: String; FailIfExists: Boolean): File

 

File CreateFile(String FileName, Boolean FailIfExists)

 

func CreateFile(_ FileName: String, _ FailIfExists: Boolean) -> File

 

Function CreateFile(FileName As String, FailIfExists As Boolean) As File

Parameters:

  • FileName:
  • FailIfExists:

CreateSubfolder (String, Boolean): Folder Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Create a subdirectory in this folder.

 

method CreateSubfolder(SubfolderName: String; FailIfExists: Boolean): Folder

 

Folder CreateSubfolder(String SubfolderName, Boolean FailIfExists)

 

func CreateSubfolder(_ SubfolderName: String, _ FailIfExists: Boolean) -> Folder

 

Folder CreateSubfolder(String SubfolderName, Boolean FailIfExists)

 

Function CreateSubfolder(SubfolderName As String, FailIfExists As Boolean) As Folder

Parameters:

  • SubfolderName:
  • FailIfExists:

CreateSubfolder (String, Boolean): Folder .NET, .NET Core 6.0, .NET Standard 2.0

 

method CreateSubfolder(SubfolderName: String; FailIfExists: Boolean): Folder

 

Folder CreateSubfolder(String SubfolderName, Boolean FailIfExists)

 

func CreateSubfolder(_ SubfolderName: String, _ FailIfExists: Boolean) -> Folder

 

Function CreateSubfolder(SubfolderName As String, FailIfExists As Boolean) As Folder

Parameters:

  • SubfolderName:
  • FailIfExists:

DateCreated Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns the creation date.

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

DateTime DateCreated { __get; }

 

ReadOnly Property DateCreated() As DateTime

DateCreated .NET, .NET Core 6.0, .NET Standard 2.0

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

ReadOnly Property DateCreated() As DateTime

DateModified Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns the last modification date.

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

DateTime DateModified { __get; __set; }

 

Property DateModified() As DateTime

DateModified .NET, .NET Core 6.0, .NET Standard 2.0

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

Property DateModified() As DateTime

Delete Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Delete a folder.

 

method Delete

 

void Delete()

 

func Delete()

 

void Delete()

 

Sub Delete()

Delete (Folder) .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Delete a folder.

 

class method Delete(aFolderName: Folder)

 

static void Delete(Folder aFolderName)

 

static func Delete(_ aFolderName: Folder)

 

static void Delete(Folder aFolderName)

 

Shared Sub Delete(aFolderName As Folder)

Parameters:

  • aFolderName:

Exists Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Check if the folder exists.

 

method Exists: Boolean

 

Boolean Exists()

 

func Exists() -> Boolean

 

Boolean Exists()

 

Function Exists() As Boolean

Exists (nullable Folder): Boolean .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Check if the folder exists.

 

class method Exists(aFolderName: nullable Folder): Boolean

 

static Boolean Exists(Folder? aFolderName)

 

// Toffee
static func Exists(_ aFolderName: Folder) -> Boolean
// ToffeeV2
static func Exists(_ aFolderName: Folder?) -> Boolean

 

static Boolean Exists(Folder aFolderName)

 

Shared Function Exists(aFolderName As Folder?) As Boolean

Parameters:

  • aFolderName:

Extension

Returns the extension in the filename of this folder.

 

property Extension: not nullable String read;

 

String! Extension { get; }

 

var Extension: String { get{} }

 

String Extension { __get; }

 

ReadOnly Property Extension() As String

FirstMatchingSubfolder (String, Iterable<String>): String Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions)

 

// Toffee
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: INSFastEnumeration<String>) -> String
// ToffeeV2
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>) -> String?

 

String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions)

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:

FirstMatchingSubfolder (String, Iterable<String>, Func<String, String, String>): String Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>; aBuildPath: Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions, Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String> aBuildPath)

 

// Toffee
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: INSFastEnumeration<String>, _ aBuildPath: (String, String) -> String) -> String
// ToffeeV2
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>, _ aBuildPath: (String, String) -> String) -> String?

 

String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions, Func3<String, String, String> aBuildPath)

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String>) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:
  • aBuildPath:

FirstMatchingSubfolder (String, IEnumerable<String>): nullable String .NET, .NET Core 6.0, .NET Standard 2.0

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions)

 

func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>) -> String?

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:

FirstMatchingSubfolder (String, IEnumerable<String>, Func<String, String, String>): nullable String .NET, .NET Core 6.0, .NET Standard 2.0

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>; aBuildPath: Func<String, String, String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions, Func<String, String, String> aBuildPath)

 

func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>, _ aBuildPath: Func<String, String, String>) -> String?

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func (Of String, String, String)) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:
  • aBuildPath:

FullPath

Returns the full apth of this folder.

 

property FullPath: not nullable String read;

 

String! FullPath { get; }

 

var FullPath: String { get{} }

 

String FullPath { __get; }

 

ReadOnly Property FullPath() As String

GetFile (String): File Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Get a file inside this folder.

 

method GetFile(FileName: String): File

 

File GetFile(String FileName)

 

func GetFile(_ FileName: String) -> File

 

File GetFile(String FileName)

 

Function GetFile(FileName As String) As File

Parameters:

  • FileName:

GetFile (String): File .NET, .NET Core 6.0, .NET Standard 2.0

 

method GetFile(FileName: String): File

 

File GetFile(String FileName)

 

func GetFile(_ FileName: String) -> File

 

Function GetFile(FileName As String) As File

Parameters:

  • FileName:

GetFiles Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

method GetFiles: not nullable ImmutableList<String>

 

ImmutableList<String>! GetFiles()

 

func GetFiles() -> ImmutableList<String>

 

ImmutableList<String> GetFiles()

 

Function GetFiles() As ImmutableList<String>

GetFiles (Boolean): not nullable ImmutableList<String> Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

method GetFiles(aRecursive: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! GetFiles(Boolean aRecursive)

 

func GetFiles(_ aRecursive: Boolean) -> ImmutableList<String>

 

ImmutableList<String> GetFiles(Boolean aRecursive)

 

Function GetFiles(aRecursive As Boolean) As ImmutableList<String>

Parameters:

  • aRecursive:

GetFiles (Boolean): not nullable ImmutableList<String> .NET, .NET Core 6.0, .NET Standard 2.0

 

method GetFiles(aRecursive: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! GetFiles(Boolean aRecursive)

 

func GetFiles(_ aRecursive: Boolean) -> ImmutableList<String>

 

Function GetFiles(aRecursive As Boolean) As ImmutableList<String>

Parameters:

  • aRecursive:

GetFiles (Folder, Boolean): not nullable ImmutableList<String> .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

class method GetFiles(aFolderName: Folder; aRecursive: Boolean): not nullable ImmutableList<String>

 

static ImmutableList<String>! GetFiles(Folder aFolderName, Boolean aRecursive)

 

static func GetFiles(_ aFolderName: Folder, _ aRecursive: Boolean) -> ImmutableList<String>

 

static ImmutableList<String> GetFiles(Folder aFolderName, Boolean aRecursive)

 

Shared Function GetFiles(aFolderName As Folder, aRecursive As Boolean) As ImmutableList<String>

Parameters:

  • aFolderName:
  • aRecursive:

GetFilesAndFolders .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files and folders in a given folder.

 

class method GetFilesAndFolders(aFolderName: Folder): not nullable ImmutableList<String>

 

static ImmutableList<String>! GetFilesAndFolders(Folder aFolderName)

 

static func GetFilesAndFolders(_ aFolderName: Folder) -> ImmutableList<String>

 

static ImmutableList<String> GetFilesAndFolders(Folder aFolderName)

 

Shared Function GetFilesAndFolders(aFolderName As Folder) As ImmutableList<String>

Parameters:

  • aFolderName:

GetSubfolders Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of folders in a given folder.

 

method GetSubfolders: not nullable List<String>

 

List<String>! GetSubfolders()

 

func GetSubfolders() -> List<String>

 

List<String> GetSubfolders()

 

Function GetSubfolders() As List<String>

GetSubfolders (Folder): not nullable List<String> .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of folders in a given folder.

 

class method GetSubfolders(aFolderName: Folder): not nullable List<String>

 

static List<String>! GetSubfolders(Folder aFolderName)

 

static func GetSubfolders(_ aFolderName: Folder) -> List<String>

 

static List<String> GetSubfolders(Folder aFolderName)

 

Shared Function GetSubfolders(aFolderName As Folder) As List<String>

Parameters:

  • aFolderName:

Name

Returns the name of this folder without path.

 

property Name: not nullable String read;

 

String! Name { get; }

 

var Name: String { get{} }

 

String Name { __get; }

 

ReadOnly Property Name() As String

Rename (String): Folder Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Rename this folder.

 

method Rename(NewName: String): Folder

 

Folder Rename(String NewName)

 

func Rename(_ NewName: String) -> Folder

 

Folder Rename(String NewName)

 

Function Rename(NewName As String) As Folder

Parameters:

  • NewName:

Rename (String): Folder .NET, .NET Core 6.0, .NET Standard 2.0

 

method Rename(NewName: String): Folder

 

Folder Rename(String NewName)

 

func Rename(_ NewName: String) -> Folder

 

Function Rename(NewName As String) As Folder

Parameters:

  • NewName:

Separator

Returns the separator for path elements in this folder.

 

class property Separator: Char read;

 

class Char Separator { get; }

 

static var Separator: Char { get{} }

 

class Char Separator { __get; }

 

Shared ReadOnly Property Separator() As Char

 

DateCreated Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns the creation date.

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

DateTime DateCreated { __get; }

 

ReadOnly Property DateCreated() As DateTime

DateModified Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returns the last modification date.

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

DateTime DateModified { __get; __set; }

 

Property DateModified() As DateTime

Extension

Returns the extension in the filename of this folder.

 

property Extension: not nullable String read;

 

String! Extension { get; }

 

var Extension: String { get{} }

 

String Extension { __get; }

 

ReadOnly Property Extension() As String

FullPath

Returns the full apth of this folder.

 

property FullPath: not nullable String read;

 

String! FullPath { get; }

 

var FullPath: String { get{} }

 

String FullPath { __get; }

 

ReadOnly Property FullPath() As String

Name

Returns the name of this folder without path.

 

property Name: not nullable String read;

 

String! Name { get; }

 

var Name: String { get{} }

 

String Name { __get; }

 

ReadOnly Property Name() As String

DateCreated .NET, .NET Core 6.0, .NET Standard 2.0

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

ReadOnly Property DateCreated() As DateTime

DateModified .NET, .NET Core 6.0, .NET Standard 2.0

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

Property DateModified() As DateTime

Separator

Returns the separator for path elements in this folder.

 

class property Separator: Char read;

 

class Char Separator { get; }

 

static var Separator: Char { get{} }

 

class Char Separator { __get; }

 

Shared ReadOnly Property Separator() As Char

 

Create (Folder, Boolean): Folder .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Creates a new folder.

 

class method Create(aFolderName: Folder; FailIfExists: Boolean): Folder

 

static Folder Create(Folder aFolderName, Boolean FailIfExists)

 

static func Create(_ aFolderName: Folder, _ FailIfExists: Boolean) -> Folder

 

static Folder Create(Folder aFolderName, Boolean FailIfExists)

 

Shared Function Create(aFolderName As Folder, FailIfExists As Boolean) As Folder

Parameters:

  • aFolderName:
  • FailIfExists:

Delete (Folder) .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Delete a folder.

 

class method Delete(aFolderName: Folder)

 

static void Delete(Folder aFolderName)

 

static func Delete(_ aFolderName: Folder)

 

static void Delete(Folder aFolderName)

 

Shared Sub Delete(aFolderName As Folder)

Parameters:

  • aFolderName:

Exists (nullable Folder): Boolean .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Check if the folder exists.

 

class method Exists(aFolderName: nullable Folder): Boolean

 

static Boolean Exists(Folder? aFolderName)

 

// Toffee
static func Exists(_ aFolderName: Folder) -> Boolean
// ToffeeV2
static func Exists(_ aFolderName: Folder?) -> Boolean

 

static Boolean Exists(Folder aFolderName)

 

Shared Function Exists(aFolderName As Folder?) As Boolean

Parameters:

  • aFolderName:

GetFiles (Folder, Boolean): not nullable ImmutableList<String> .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

class method GetFiles(aFolderName: Folder; aRecursive: Boolean): not nullable ImmutableList<String>

 

static ImmutableList<String>! GetFiles(Folder aFolderName, Boolean aRecursive)

 

static func GetFiles(_ aFolderName: Folder, _ aRecursive: Boolean) -> ImmutableList<String>

 

static ImmutableList<String> GetFiles(Folder aFolderName, Boolean aRecursive)

 

Shared Function GetFiles(aFolderName As Folder, aRecursive As Boolean) As ImmutableList<String>

Parameters:

  • aFolderName:
  • aRecursive:

GetFilesAndFolders .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files and folders in a given folder.

 

class method GetFilesAndFolders(aFolderName: Folder): not nullable ImmutableList<String>

 

static ImmutableList<String>! GetFilesAndFolders(Folder aFolderName)

 

static func GetFilesAndFolders(_ aFolderName: Folder) -> ImmutableList<String>

 

static ImmutableList<String> GetFilesAndFolders(Folder aFolderName)

 

Shared Function GetFilesAndFolders(aFolderName As Folder) As ImmutableList<String>

Parameters:

  • aFolderName:

GetSubfolders (Folder): not nullable List<String> .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of folders in a given folder.

 

class method GetSubfolders(aFolderName: Folder): not nullable List<String>

 

static List<String>! GetSubfolders(Folder aFolderName)

 

static func GetSubfolders(_ aFolderName: Folder) -> List<String>

 

static List<String> GetSubfolders(Folder aFolderName)

 

Shared Function GetSubfolders(aFolderName As Folder) As List<String>

Parameters:

  • aFolderName:

 

constructor

Creates a new instance for a given folder path.

 

constructor(aPath: not nullable String)

 

Folder(String! aPath)

 

init(_ aPath: String)

 

Folder(String aPath)

 

Sub New(aPath As String)

Parameters:

  • aPath:

CopyContentsTo (Folder, Boolean) Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Copy the content of this folder, optionally recursively.

 

method CopyContentsTo(aNewFolder: Folder; aRecursive: Boolean)

 

void CopyContentsTo(Folder aNewFolder, Boolean aRecursive)

 

func CopyContentsTo(_ aNewFolder: Folder, _ aRecursive: Boolean)

 

void CopyContentsTo(Folder aNewFolder, Boolean aRecursive)

 

Sub CopyContentsTo(aNewFolder As Folder, aRecursive As Boolean)

Parameters:

  • aNewFolder:
  • aRecursive:

Create (Boolean) Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Creates a new folder.

 

method Create(FailIfExists: Boolean)

 

void Create(Boolean FailIfExists)

 

func Create(_ FailIfExists: Boolean)

 

void Create(Boolean FailIfExists)

 

Sub Create(FailIfExists As Boolean)

Parameters:

  • FailIfExists:

CreateFile (String, Boolean): File Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Create a file in thsi folder.

 

method CreateFile(FileName: String; FailIfExists: Boolean): File

 

File CreateFile(String FileName, Boolean FailIfExists)

 

func CreateFile(_ FileName: String, _ FailIfExists: Boolean) -> File

 

File CreateFile(String FileName, Boolean FailIfExists)

 

Function CreateFile(FileName As String, FailIfExists As Boolean) As File

Parameters:

  • FileName:
  • FailIfExists:

CreateSubfolder (String, Boolean): Folder Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Create a subdirectory in this folder.

 

method CreateSubfolder(SubfolderName: String; FailIfExists: Boolean): Folder

 

Folder CreateSubfolder(String SubfolderName, Boolean FailIfExists)

 

func CreateSubfolder(_ SubfolderName: String, _ FailIfExists: Boolean) -> Folder

 

Folder CreateSubfolder(String SubfolderName, Boolean FailIfExists)

 

Function CreateSubfolder(SubfolderName As String, FailIfExists As Boolean) As Folder

Parameters:

  • SubfolderName:
  • FailIfExists:

Delete Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Delete a folder.

 

method Delete

 

void Delete()

 

func Delete()

 

void Delete()

 

Sub Delete()

Exists Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Check if the folder exists.

 

method Exists: Boolean

 

Boolean Exists()

 

func Exists() -> Boolean

 

Boolean Exists()

 

Function Exists() As Boolean

FirstMatchingSubfolder (String, Iterable<String>): String Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions)

 

// Toffee
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: INSFastEnumeration<String>) -> String
// ToffeeV2
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>) -> String?

 

String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions)

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:

FirstMatchingSubfolder (String, Iterable<String>, Func<String, String, String>): String Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method FirstMatchingSubfolder(aFolder: String; aSubFolderOptions: IEnumerable<String>; aBuildPath: Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String>): nullable String

 

String? FirstMatchingSubfolder(String aFolder, IEnumerable<String> aSubFolderOptions, Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String> aBuildPath)

 

// Toffee
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: INSFastEnumeration<String>, _ aBuildPath: (String, String) -> String) -> String
// ToffeeV2
func FirstMatchingSubfolder(_ aFolder: String, _ aSubFolderOptions: IEnumerable<String>, _ aBuildPath: (String, String) -> String) -> String?

 

String FirstMatchingSubfolder(String aFolder, Iterable<String> aSubFolderOptions, Func3<String, String, String> aBuildPath)

 

Function FirstMatchingSubfolder(aFolder As String, aSubFolderOptions As IEnumerable<String>, aBuildPath As Func<RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String,RemObjects.Elements.RTL.String>) As String?

Parameters:

  • aFolder:
  • aSubFolderOptions:
  • aBuildPath:

GetFile (String): File Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Get a file inside this folder.

 

method GetFile(FileName: String): File

 

File GetFile(String FileName)

 

func GetFile(_ FileName: String) -> File

 

File GetFile(String FileName)

 

Function GetFile(FileName As String) As File

Parameters:

  • FileName:

GetFiles Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

method GetFiles: not nullable ImmutableList<String>

 

ImmutableList<String>! GetFiles()

 

func GetFiles() -> ImmutableList<String>

 

ImmutableList<String> GetFiles()

 

Function GetFiles() As ImmutableList<String>

GetFiles (Boolean): not nullable ImmutableList<String> Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of files in a given folder.

 

method GetFiles(aRecursive: Boolean): not nullable ImmutableList<String>

 

ImmutableList<String>! GetFiles(Boolean aRecursive)

 

func GetFiles(_ aRecursive: Boolean) -> ImmutableList<String>

 

ImmutableList<String> GetFiles(Boolean aRecursive)

 

Function GetFiles(aRecursive As Boolean) As ImmutableList<String>

Parameters:

  • aRecursive:

GetSubfolders Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Returrns a list of folders in a given folder.

 

method GetSubfolders: not nullable List<String>

 

List<String>! GetSubfolders()

 

func GetSubfolders() -> List<String>

 

List<String> GetSubfolders()

 

Function GetSubfolders() As List<String>

Rename (String): Folder Cooper, Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-visionOS, Island-visionOS Simulator, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

Rename this folder.

 

method Rename(NewName: String): Folder

 

Folder Rename(String NewName)

 

func Rename(_ NewName: String) -> Folder

 

Folder Rename(String NewName)

 

Function Rename(NewName As String) As Folder

Parameters:

  • NewName: