HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FS_StaleUSDFiles.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: FS_StaleUSDFiles.h (FS Library, C++)
7
*
8
* COMMENTS:
9
*/
10
11
#ifndef __FS_StaleUSDFiles__
12
#define __FS_StaleUSDFiles__
13
14
#include "
FS_API.h
"
15
#include "
FS_Info.h
"
16
#include <
UT/UT_StringHolder.h
>
17
#include <
UT/UT_StringArray.h
>
18
19
/// Houdini generates temporary files in $HOUDINI_TEMP/usd_renders. If a
20
/// process crashes or doesn't clean up properly, there can be stale files left
21
/// dangling.
22
///
23
/// These are convenience functions for dealing with these temporary files.
24
namespace
FS_StaleUSDFiles
25
{
26
/// Clean up any stale USD files, returning the list of files in the
27
/// removed array. If the function fails to remove a file, the filename
28
/// will be added to the @c error_files.
29
///
30
/// The @c dry_run boolean lets you call the function without actually
31
/// making changes to the file system. Files which would be removed are
32
/// returned in the @c removed list.
33
///
34
/// The file returns @c true if there were stale files detected.
35
FS_API
bool
cleanup
(
UT_StringArray
&removed,
36
UT_StringArray
&error_files,
37
exint
&memory_freed,
38
bool
dry_run,
39
const
char
*override_path =
nullptr
);
40
};
41
42
#endif
43
exint
int64 exint
Definition:
SYS_Types.h:125
UT_StringArray.h
FS_Info.h
FS_API.h
UT_StringArray
Definition:
UT_StringArray.h:24
FS_StaleUSDFiles::cleanup
FS_API bool cleanup(UT_StringArray &removed, UT_StringArray &error_files, exint &memory_freed, bool dry_run, const char *override_path=nullptr)
UT_StringHolder.h
FS_API
#define FS_API
Definition:
FS_API.h:10
FS
FS_StaleUSDFiles.h
Generated on Wed Sep 3 2025 02:33:27 for HDK by
1.8.6