Catalyst.FileUtils
Description:
The FileUtils namespace contains useful functions for handling files.
Content:
Functions:
- public void copy_recursive (File src, File dest, FileCopyFlags flags = NONE, Cancellable? cancellable = null) throws Error
Performs a recursive copy from src to dest.
- public void delete_recursive (File file, Cancellable? cancellable = null) throws Error
Performs a recursive delete of the given directory. If the given file
is not a directory, but is a regular file, it will behave the same as GLib.File.delete.
- public bool extract_archive (File archive_file, File target)
Extracts an archive file.
- public string? get_extension (File file, bool normalize = true)
Determines the extension for the given file.
- public Collection<File>? list_files (File directory, bool include_subdirs = true, Cancellable? cancellable = null) throws Error
Lists all the files contained within the given parent directory.