IO
Namespace
Encodings
Text encodings
Extensions
Disk file extensions
FileFormats
Disk file formats
Folders
Common file folders for the program and operating system
Class
FileEntry
A volume directory entry
Nexus
Describes a nexus file structure
Process
Options for process execution
ProcessResult
Results of a process run
Function
bool
CreateFolder
(
path
)
Create a folder path on disk
bool
DeleteFile
(
path
)
Delete a disk path
Domain
(
value
)
A web domain (e.g. www.shop.com)
FileEntry
[]
EnumerateFiles
(
folder
,
filter
=
null
)
Get a directory listing of files
FileEntry
[]
EnumerateFolders
(
folder
,
filter
=
null
)
Get a directory listing of folders
Extension
(
value
)
A file name extension (e.g. .txt)
bool
FileExists
(
value
)
Returns true if the file exists
FileName
(
value
)
A file name
Folder
(
value
)
A folder or directory name
bool
FolderExists
(
value
)
Returns true if the folder exists
string
GetFileExtension
(
value
)
Extracts the file extension (without the '.')
string
GetFileName
(
value
)
Extracts the filename from a path
string
GetFileNameWithoutExtension
(
value
)
Extracts the filename from a path and removes extension if any
string
GetFolder
(
value
)
Extracts the folder from the path
string
GetFullPath
(
value
)
Returns the fully qualified path
string
GetNytrilPath
(
value
)
Gets the path with '\' replaced by '/'
string
GetWindowsPath
(
value
)
Gets the path with '/' replaced by '\'
bool
HasFileExtension
(
value
,
extension
)
Returns true if filename contains the extension (regardless of the '.')
bool
OpenDocument
(
path
,
arguments
=
null
)
Cause the shell to open the file with its default viewer
bool
OpenExplorer
(
path
)
Open the file explorer and focus on the path
blob
ReadBlob
(
path_or_blob
,
int
offset
=
null
,
int
length
=
null
)
Read file contents into a blob
ReadDocument
(
path_or_blob
,
FileFormat
fileformat
=
null
)
Read a document file from a path
ReadJSON
(
path_or_blob
)
Read a JSON file and return the root object
IO
.
Nexus
ReadNexus
(
path_or_blob
,
Attribute
prop
=
null
)
Read a nexus file
ScriptBuild
ReadScript
(
path_or_blob
)
Read a nytril script file from a path
string
ReadString
(
path_or_blob
,
FileFormat
encoding
=
null
)
Read a file into a string
Node
ReadTree
(
path_or_blob
,
Attribute
prop
=
null
)
Read a tre file
Volume
(
value
)
A disk volume (e.g. C:)
bool
WriteDocument
(
value
,
path
,
FileFormat
fileformat
=
null
)
Write the value to a document file
bool
WriteString
(
value
,
FileFormat
encoding
=
null
)
Write the value to a string