PYTHON How to check if a file already exists?

Hey guys,

how can I check if a file already exists with python? I now about unreal.Paths.file_exists(path), but this method needs a path on disc. Instead I want to use something like “/Game/Folder/File”.

Thank you!

Found a suitable method here: unreal.EditorAssetLibrary.does_asset_exist()

2 Likes