Search Results for

    Show / Hide Table of Contents

    Class SafeDirectory

    Safe version of C# 'Directory' class utilizing UniTask for async operations. Directory operations with safety checks and utility methods.

    Inheritance
    object
    SafeDirectory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Files
    Assembly: Glitch9.IO.dll
    Syntax
    public static class SafeDirectory

    Methods

    | Edit this page View Source

    EnsureDirectory(string, bool)

    Declaration
    public static void EnsureDirectory(string dir, bool log = false)
    Parameters
    Type Name Description
    string dir
    bool log
    | Edit this page View Source

    EnsureDirectoryFromFilePath(string, bool)

    Declaration
    public static void EnsureDirectoryFromFilePath(string path, bool log = false)
    Parameters
    Type Name Description
    string path
    bool log
    | Edit this page View Source

    Exists(string, bool?, bool)

    Declaration
    public static bool Exists(string path, bool? hasFileName = null, bool log = false)
    Parameters
    Type Name Description
    string path
    bool? hasFileName
    bool log
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation