Sometimes you don't want find to go into a particular subtree. This command finds all swift files from the current directory, except those in experimental: % find . -path ./experimental -prune -o -name "*.swift"
experimental
% find . -path ./experimental -prune -o -name "*.swift"