Ejemplo n.º 1
0
        public List <AppFileEntry> Build(string path)
        {
            var parentId = _logicPathRepository
                           .Add(path);

            return(Traverse(path, parentId)
                   .ToList());
        }
Ejemplo n.º 2
0
        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);
        }