StatickProvides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
StatickProvides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
StatickProvides a character used to separate directory levels in a path string that reflects a hierarchical file system organization on POSIX systems.
StatickProvides a character used to separate directory levels in a path string that reflects a hierarchical file system organization on Windows systems.
Static ReadonlypackageThe file extension for the RSX package format. The string includes the dot filename separate.
StaticchangeChanges the extension of a path string.
The path information to modify. The path cannot contain any of the characters defined in System.IO.Path.GetInvalidPathChars.
The new extension (with or without a leading period). Specify null to remove an existing extension from path.
The modified path information.On Windows-based desktop platforms, if path is null or an empty string (""), the path information is returned unmodified.
StaticcombineCombines two strings into a path.
The combined paths.
StaticcompareChecks if two paths are equal.
True if both paths point to the same place.
StaticcopyStaticcopyStaticcopyStaticcreateCreates all directories and subdirectories in the specified path unless they already exist.
The directory to create.
True upon success.
StaticdeleteDeletes the specified directory and, if indicated, any subdirectories and files in the directory.
The name of the directory to remove.
true to remove directories, subdirectories, and files in path; otherwise, false.
StaticdeleteDeletes the specified file.
The name of the file to be deleted. Wildcard characters are not supported.
StaticensureEnsures that the given path directory separators are consistent to the current platform.
StaticensureCreates a folder at the specified path if it does not exist yet.
Full path to a full folder to create.
True if the directory exists or was created, false if the directory couldn't be created
StaticensureEnsures that the given path starts with the given prefix. Same path if already does.
The given path prefixed with the given prefix. The same path if already contains the given suffix.
StaticensureEnsures that the given path ends with the given suffix. Same path if already does.
The given path suffixed with the given suffix. The same path if already contains the given suffix.
StaticgetStaticgetReturns an array of directory names in a specified path.
The relative or absolute path to the directory to search. This string is not case-sensitive.
An array of the full names (including paths) for the directories in the directory specified by path.
StaticgetReturns the extension of the specified path string.
The path string from which to obtain the file name and extension.
The extension of the specified path (including the period "."), or null, or System.String.Empty.
StaticgetReturns the file name and extension of the specified path string.
The path of the file.
The characters after the last directory character in path.
StaticgetReturns the file name of the specified path string without the extension.
The path of the file.
The string returned by System.IO.Path.GetFileName(System.String), minus the last period (.) and all characters following it.
StaticgetReturns an array of file names in a specified path.
The relative or absolute path to the directory to search. This string is not case-sensitive.
An array of the full names (including paths) for the files in the directory specified by path.
StaticgetGets the size of the file at the specified filePath.
The file to write to.
The file size.
StaticgetReturns the date and time the specified file or directory was last written to.
The file or directory for which to obtain write date and time information.
A Date object set to the date and time that the specified file or directory was last written to. This value is expressed in local time.
StaticgetReturns the parent of the provided path.
Path to return the parent of.
Parent of the path. This usually means the folder containing the file or folder in the current path.
StaticgetRemoves the filename component from the path string.
The path of a file or directory.
Path without the filename component.
StaticgetReturns the last entry in the path, regardless if that is a directory or a filename.
Path to get the tail of.
Tail of the path. This might be a directory or a filename.
StaticgetSimilar to getTail, but when the given path is a path to a directory, the returned value also contains a separator char at the end to indicate that.
Path to get the tail of.
Tail of the path. This might be a directory or a filename.
StaticisStaticisDetermines whether the given path refers to an existing directory on disk.
The path to test.
true if path refers to an existing directory; false if the directory does not exist or an error occurs
StaticisDetermines whether the specified file exists.
The file to check.
true if the caller has the required permissions and path contains the name of an existing file; otherwise, false.
StaticisStaticisChecks if one path is part of an another path.
True if parent contains path.
StaticisGets a value indicating whether the specified path string contains a root.
The path to test.
true if path contains a root; otherwise, false.
StaticisDetermines if the file has the read-only flag set.
StaticisChecks if the provided name can be used as a file name.
Name to check.
True if the name can be used as a file name.
StaticmoveStaticmoveStaticreadOpens a binary file, reads the contents of the file into a byte array, and then closes the file.
The file to open for reading.
A byte array containing the contents of the file.
StaticreadOpens a text file, reads all lines of the file, and then closes the file.
The file to open for reading.
A string containing all lines of the file.
StaticsetSets the read-only state of the file.
OptionalisRecursive: booleanStaticwriteCreates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The bytes to write to the file.
StaticwriteCreates a new file, writes the specified stream to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The stream to write to the file.
OptionalseekToBeginning: booleanIf true, seeks the stream to be beginning.
StaticwriteCreates a new file, asynchronously writes the specified stream to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The stream to write to the file.
OptionalseekToBeginning: booleanIf true, seeks the stream to be beginning.
StaticwriteCreates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The string to write to the file.
The FileSystem class provides static methods for the manipulation of files and filepaths.