Table of Contents

Class GDDirectory

Namespace
Cobilas.GodotEngine.Utility
Assembly
com.cobilas.godot.utility.dll
public sealed class GDDirectory : GDFileBase, IDisposable
Inheritance
GDDirectory
Implements
Inherited Members

Properties

Attribute

public override GDFileAttributes Attribute { get; protected set; }

Property Value

GDFileAttributes

Count

public int Count { get; }

Property Value

int

Name

public override string Name { get; }

Property Value

string

NameWithoutExtension

public override string NameWithoutExtension { get; }

Property Value

string

Parent

public override GDFileBase Parent { get; protected set; }

Property Value

GDFileBase

Path

public override string Path { get; protected set; }

Property Value

string

Methods

CreateDirectory(string?)

public bool CreateDirectory(string? directoryName)

Parameters

directoryName string

Returns

bool

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

~GDDirectory()

protected ~GDDirectory()

GetDirectories()

public GDDirectory[] GetDirectories()

Returns

GDDirectory[]

GetDirectory(string?, bool)

public GDDirectory? GetDirectory(string? relativePath, bool isSubdirectory = false)

Parameters

relativePath string
isSubdirectory bool

Returns

GDDirectory

GetFile(string?, bool)

public GDFile? GetFile(string? name, bool isSubdirectory = false)

Parameters

name string
isSubdirectory bool

Returns

GDFile

GetFiles(bool)

public GDFile[] GetFiles(bool isSubdirectory = false)

Parameters

isSubdirectory bool

Returns

GDFile[]

GetGDDirectory()

public static GDDirectory? GetGDDirectory()

Returns

GDDirectory

GetGDDirectory(string?)


Opens an existing directory of the filesystem. The path argument can be within

the project tree (res://folder), the user directory (user://folder) or an absolute

path of the user filesystem (e.g. /tmp/folder or C:\tmp\folder).

public static GDDirectory? GetGDDirectory(string? path)

Parameters

path string

Returns

GDDirectory

RemoveDirectory(string?)

public bool RemoveDirectory(string? directoryName)

Parameters

directoryName string

Returns

bool

RemoveFile(string?)

public bool RemoveFile(string? fileName)

Parameters

fileName string

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.