unreal.BlueprintFileUtilsBPLibrary
¶
- class unreal.BlueprintFileUtilsBPLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Blueprint File Utils BPLibrary
C++ Source:
Plugin: BlueprintFileUtils
Module: BlueprintFileUtils
File: BlueprintFileUtilsBPLibrary.h
- classmethod copy_file(dest_filename, src_filename, replace=True, even_if_read_only=False) bool ¶
Copies a file.
- classmethod delete_directory(directory, must_exist=False, delete_recursively=False) bool ¶
Deletes a directory and all the files in it and optionally all sub-directories and files within it
- Parameters:
- Returns:
true if the directory was succesfully deleted, false otherwise
- Return type:
- classmethod find_files(directory, file_extension='') Array[str] or None ¶
Finds all the files within the given directory, with optional file extension filter.
- Parameters:
- Returns:
true if anything was found, false otherwise
found_files (Array[str]): All the files found that matched the optional FileExtension filter, or all files if none was specified.
- Return type:
- classmethod find_recursive(start_directory, wildcard='', find_files=True, find_directories=False) Array[str] or None ¶
Finds all the files and/or directories within the given directory and any sub-directories. Files can be found with anoptional file extension filter.
- Parameters:
start_directory (str) – The absolute path to the directory to start the search. Ex: “C:UnrealEditorPictures”
wildcard (str) – Wildcard that can be used to find files or directories with specific text in their name. E.g .png to find all files ending with the png extension, *images to find anything with the word “images” in it Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. Does not apply to directories
find_files (bool) – Whether or not to find files
find_directories (bool) – Whether or not to find directories
- Returns:
true if anything was found, false otherwise
found_paths (Array[str]): All the paths (directories and/or files) found
- Return type:
- classmethod get_user_directory() str ¶
Get the users directory. Platform specific (usually something like MyDocuments or the users home directory
- Return type: