Class FileUtil
Provides utility methods for handling file paths and file operations.
Inherited Members
Namespace: FBXImporter
Assembly: FBXImporter.dll
Syntax
public static class FileUtil
Methods
FindFile(string, string, bool)
Searches for a file given a base path and an original relative or absolute path.
Declaration
public static string FindFile(string basePath, string originalPath, bool recursively = false)
Parameters
Type | Name | Description |
---|---|---|
string | basePath | The base directory path used to resolve relative paths. |
string | originalPath | The relative or absolute path of the target file. |
bool | recursively | Specifies whether to search subdirectories of the base path. |
Returns
Type | Description |
---|---|
string | The fully resolved path if the file is found; otherwise, |
IsPathValid(string)
Returns whether the given path is valid.
Declaration
public static bool IsPathValid(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path to check. |
Returns
Type | Description |
---|---|
bool |
|