I'm trying to figure our how the "-prune" option works. I've searched quite a bit on line, and as far as I can tell, "-prune" works exactly the opposite as it says.
I'm using Apt-proxy, and I want to scan through the folders, and find files that end with "*.bz2"
The problem is that the search takes a while because of all the "*.deb" files.
Fortunately, they're stored in their own folder:
each have two folders:
I want to go into the "dist" folders, and find "*.bz2" files, but not the "pool" folders.
so I tried:
find /var/cache/apt-proxy/ -path "*pool" -prune
and it returned only the "pool" directories without even going down.
adding the option "-mindepth 6" doesn't do anything... (running mindepth 6 by itself with -name "*.bz2" returns all the files)
I was hoping to write this out so that find will return the file as fast as possible, since there really isn't that much to search (assuming the "pool" folder is skipped.)
What am I doing wrong?