Lightweight FBX Importer
Search Results for

    Show / Hide Table of Contents

    Class FileUtil

    Provides utility methods for handling file paths and file operations.

    Inheritance
    object
    FileUtil
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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, null.

    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

    true of the path is valid. Otherwise, false.

    In this article
    Back to top Generated by DocFX