mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
When building filesystem contents test file also include symlinks.
This commit is contained in:
@@ -254,6 +254,11 @@ namespace Aaru.Tests.Filesystems
|
|||||||
{
|
{
|
||||||
data.Children = BuildDirectory(fs, childPath);
|
data.Children = BuildDirectory(fs, childPath);
|
||||||
}
|
}
|
||||||
|
else if(stat.Attributes.HasFlag(FileAttributes.Symlink))
|
||||||
|
{
|
||||||
|
if(fs.ReadLink(childPath, out string link) == Errno.NoError)
|
||||||
|
data.LinkTarget = link;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
data.MD5 = BuildFile(fs, childPath, stat.Length);
|
data.MD5 = BuildFile(fs, childPath, stat.Length);
|
||||||
|
|||||||
Reference in New Issue
Block a user