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
Count
public int Count { get; }
Property Value
Name
public override string Name { get; }
Property Value
NameWithoutExtension
public override string NameWithoutExtension { get; }
Property Value
Parent
public override GDFileBase Parent { get; protected set; }
Property Value
Path
public override string Path { get; protected set; }
Property Value
Methods
CreateDirectory(string?)
public bool CreateDirectory(string? directoryName)
Parameters
directoryName
string
Returns
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
GetDirectory(string?, bool)
public GDDirectory? GetDirectory(string? relativePath, bool isSubdirectory = false)
Parameters
Returns
GetFile(string?, bool)
public GDFile? GetFile(string? name, bool isSubdirectory = false)
Parameters
Returns
GetFiles(bool)
public GDFile[] GetFiles(bool isSubdirectory = false)
Parameters
isSubdirectory
bool
Returns
- GDFile[]
GetGDDirectory()
public static GDDirectory? GetGDDirectory()
Returns
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
RemoveDirectory(string?)
public bool RemoveDirectory(string? directoryName)
Parameters
directoryName
string
Returns
RemoveFile(string?)
public bool RemoveFile(string? fileName)
Parameters
fileName
string
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.