public override string[] Handle(DirectoryEnumerateEntriesArguments arguments) { Guard.NotNull(arguments, nameof(arguments)); DirectoryEntry directory = ResolveDirectory(arguments.Path); PathPattern pattern = PathPattern.Create(arguments.SearchPattern); IEnumerable <string> absoluteNames = EnumerateEntriesInDirectory(directory, pattern, arguments.Path, arguments.SearchOption, arguments.Filter); return(ToRelativeNames(absoluteNames, arguments.Path, arguments.IncomingPath).ToArray()); }