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 first path to combine.
The second path to combine.
The combined paths.
StaticcompareStaticcopyStaticcopyStaticcopyStaticcreateCreates 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.
StaticensureStaticensureStaticensureStaticgetStaticgetReturns 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.
StaticgetStaticgetReturns 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 name of the last directory specifier in given path, which is the name of parent directory of given file. If the path specifies a directory path, it should return name of that directory.
The path to transform.
Name of directory specified in path.
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.
StaticgetStaticgetRemoves 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.
StaticisReturns whether or not the given path is pointing to a directory.
The path to check for.
True for directory and false for files/resources.
StaticisDetermines 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.
StaticisReturns whether or not the given path represents a file or a Resource.
The path to check for.
True for files and resources. False for a directory.
StaticisStaticisGets a value indicating whether the specified path string contains a root.
The path to test.
true if path contains a root; otherwise, false.
StaticisStaticmoveStaticmoveStaticreadOpens 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.
StaticwriteCreates 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, 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.