HDK
|
Functions | |
FS_API bool | cleanup (UT_StringArray &removed, UT_StringArray &error_files, exint &memory_freed, bool dry_run, const char *override_path=nullptr) |
Houdini generates temporary files in $HOUDINI_TEMP/usd_renders. If a process crashes or doesn't clean up properly, there can be stale files left dangling.
These are convenience functions for dealing with these temporary files.
FS_API bool FS_StaleUSDFiles::cleanup | ( | UT_StringArray & | removed, |
UT_StringArray & | error_files, | ||
exint & | memory_freed, | ||
bool | dry_run, | ||
const char * | override_path = nullptr |
||
) |
Clean up any stale USD files, returning the list of files in the removed array. If the function fails to remove a file, the filename will be added to the error_files
.
The dry_run
boolean lets you call the function without actually making changes to the file system. Files which would be removed are returned in the removed
list.
The file returns true
if there were stale files detected.