— Creates a directory, and any parent directories in the path as needed.
— Deletes a directory, and optionally any subdirectories or files inside it.
— Deletes a file.
— Checks whether a file exists or not.
— Lists all the subdirectories in a given directory.
— Lists all the files in a given directory.
— Makes a filesystem path by combining multiple path components with slashes.
— Gets the parent directory that contains the given directory or file.
— Gets the file extension (like
) from a path.
— Gets the filename part of a path.
— Gets the part of the filename before the final dot.
— Returns the path separator character.
— Reads the contents of a file as a list of bytes.
— Reads the contents of a file as a list of strings.
— Reads the contents of a file as a string.
— Creates or overwrites a text file with a list of bytes.
— Creates or overwrites a text file with a list of line strings.
— Creates or overwrites a text file with the contents of a string.