mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 13:28:41 +00:00
Fixed GetFullPath
This commit is contained in:
parent
2ae245e14b
commit
85a255912e
1 changed files with 5 additions and 6 deletions
|
|
@ -252,15 +252,14 @@ namespace Cosmos.System.FileSystem.VFS
|
|||
public static string GetFullPath(DirectoryEntry aEntry)
|
||||
{
|
||||
FileSystemHelpers.Debug("VFSManager.GetFullPath : aEntry.mName = " + aEntry?.mName);
|
||||
var xEntry = aEntry?.mParent;
|
||||
var xParent = aEntry?.mParent;
|
||||
string xPath = aEntry?.mName;
|
||||
|
||||
while (xEntry != null)
|
||||
{
|
||||
FileSystemHelpers.Debug("VFSManager.GetFullPath : xEntry is not null.");
|
||||
xPath = string.Concat(xPath, xEntry.mName);
|
||||
while (xParent != null)
|
||||
{
|
||||
xPath = xParent.mName + xPath;
|
||||
FileSystemHelpers.Debug("VFSManager.GetFullPath : xPath = " + xPath);
|
||||
xEntry = aEntry.mParent;
|
||||
xParent = xParent.mParent;
|
||||
}
|
||||
|
||||
FileSystemHelpers.Debug("VFSManager.GetFullPath : xPath = " + xPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue