File handling functionality.

Contains methods to manipulate Folders and Files.

Methods

Name Description
AppendTextFile Appends text to a File.
AppendTextFileJsonl Append a serialised JSON object to a File in JSON Lines format (one JSON object per line).
CopyFile Copy a File.
CopyFileUnique Copy a File ensuring that the Destination File Name is unique in the folder.
CopyFiles Copy the contents of one folder to another.
CreateFolder Create a Folder.
CreateFolderFromFileName Create a Folder when passed a File Name containing path information.
DeleteFile Delete a File.
DeleteFolder Delete a Folder. Note, ReadOnly files will not be deleted.
FileExists Checks to see if a File Exists.
FileNameResolved Resolved tags in the File Name.
FolderExists Check to see if a Folder Exists. WARNING: Will return False if it exists but you do not have access to the folder.
GetFileArchiveAttribute Get the Archive attribute of a File.
GetFileBase Get the File Name excluding the file extension and path.
GetFileExtension Get the File Extension excluding the dot.
GetFileFolder Returns a File's Folder.
GetFileInfo Returns information for a File.
GetFileList Get a list of Files and Subfolders for a Folder.
GetFileName Get the File Name without any Folder information.
GetFileNameCleaned Clean a File Name (without any Folder information) so that is doesn't include any reserved characters.
GetFileNameExcludingNamedFolder Clean a File Name so that it excludes unwanted Folder information.
GetFileNameResolved Get a fully qualified File Name that may or may not be relative to the Base Folder.
GetFileNameUnique Creates a Unique File Name from a desired File Name if a File of the same name already exists in the folder.
GetFileUtcDateTime Get the File's Date and Time in UTC format.
GetFolderInfo Returns information for a Folder (directory).
GetFolderList Get a list of Subfolders for a Folder.
GetFolderParent Retrieves the parent folder from a specified folder.
GetFullFileList Get a list of Full File names for a folder, optionally recursing sub-folders.
GetTemporaryFileName Gets a Temporary File Name, including the Folder.
IsFileInCurrentFolderOrSubFolder Indicates whether the File does NOT include a folder, or if it does it is only a sub folder for the current folder (and not rooted).
IsFileNameValid Check to see if a File Name is valid.
IsFileReadOnly Check to see if a file is Read Only.
IsFileTemporary Check to see if a file is temporary (is in the temp folder for the current Windows User).
MergeFolders Merge Folders.
MoveFile Move a File.
MoveFileUnique Move a File ensuring that the Destination File Name is unique in the folder.
ReadBinaryFile Reads an entire Binary File.
ReadBinaryFileToBase64EncodedString Reads an entire Binary File to a Base 64 encoded string.
ReadTextFile Reads an entire Text File.
RenameFile Rename a File.
RenameFolder Rename a Folder.
SetFileArchiveAttribute Set the Archive attribute of a File.
SetFileReadOnly Set the Read-Only attribute of a File.
WriteFileFromBase64EncodedString Write the data from a base 64 encoded string to a file.
WriteFileFromByteArray Write the byte data from a byte array to a file.
WriteTextFile Writes a Text File.

Properties

Name Description
ApplicationDataPath Read-Only System Use Only Obsolete Returns the Application Data Path (folder) including the trailing path separator character (\).
TempPath Read-Only Returns the Temp Path (folder) including the trailing path separator character (\).
TemporarySessionFolder System Use Only
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0