Blender V4.3
blender::asset_system::utils Namespace Reference

Functions

std::string normalize_directory_path (StringRef directory)
 
std::string normalize_path (StringRefNull path, int64_t max_len)
 

Function Documentation

◆ normalize_directory_path()

std::string blender::asset_system::utils::normalize_directory_path ( StringRef directory)

Returns a normalized directory path with a trailing slash, and a maximum length of PATH_MAX. Slashes are not converted to native format (they probably should be though?).

Definition at line 17 of file asset_system/intern/utils.cc.

References BLI_path_normalize_dir(), BLI_strncpy(), blender::StringRefBase::data(), blender::StringRefBase::is_empty(), PATH_MAX, and blender::StringRefBase::size().

Referenced by blender::asset_system::AssetLibraryService::get_asset_library_on_disk().

◆ normalize_path()

std::string blender::asset_system::utils::normalize_path ( StringRefNull path,
int64_t max_len = StringRef::not_found )