public List <AppFileEntry> Build(string path) { var parentId = _logicPathRepository .Add(path); return(Traverse(path, parentId) .ToList()); }
private AppFileEntryChange ConvertToAppFileChange(FileSystemEntryChange change) { var path = change.ChangeType == FileSystemEntryChangeType.Renamed ? change.OldPath : change.Path; var id = _logicPathRepository.Add(path); if (change.ChangeType == FileSystemEntryChangeType.Renamed) { _logicPathRepository.Update(id, change.Path); } var parentId = GetParentId(path); var appFileChange = FileEntryChangeMapper .MapToAppFileEntryChange(change, id, parentId); return(appFileChange); }