21 lines
432 B
C#
21 lines
432 B
C#
using System.Collections.Generic;
|
|
using Learn.Models;
|
|
using Learn.Parsers;
|
|
|
|
namespace Learn;
|
|
|
|
public class FileMover(string targetPath)
|
|
{
|
|
private readonly HashSet<string> _visited = new ();
|
|
|
|
public void DoMove(TreeNode node)
|
|
{
|
|
if (!node.Info.IsFolder())
|
|
{
|
|
var path = ItemFields.MainKey_Path;
|
|
if (_visited.Contains(path)) return;
|
|
|
|
return;
|
|
}
|
|
}
|
|
} |