Minor fixes - added LICENSE and improved README

This commit is contained in:
2025-02-04 15:37:22 +03:30
parent 4a33e04ab4
commit 7e13bce767
5 changed files with 744 additions and 8 deletions

View File

@@ -90,6 +90,21 @@ namespace TBDel.Services
return await Task.FromResult(false);
}
public async Task<string> GetEntryPath(uint id)
{
var fileEntry = _fileCollection.FirstOrDefault(e => e.Id == id);
if (fileEntry != null)
{
return fileEntry.Path;
}
var folderEntry = _folderCollection.FirstOrDefault(e => e.Id == id);
if (folderEntry != null)
{
return folderEntry.Path;
}
return String.Empty;
}
}