find -type f still returning directories, how to stop this?

My find command looks like this:

find / -mindepth 1 -type f -path /exclude1 -prune -o -path /exclude2 -prune -o -printf '%p %Cs %sn'

The results I get are for example:

/lost+found 1151063954 16384
/dir/subdir 1483455984 4096
/dir/subdir/file.properties 1440054032 453

Now, I don’t want to see the /dir/subdir in the results anymore. How do I resolve this?

Asked By: Gamer1120

||

I needed to put the -type f at the end of the search command, but before the printf. It became:

find / -mindepth 1 -path /exclude1 -prune -o -path /exclude2 -prune -o -type f -printf '%p %Cs %sn'
Answered By: Gamer1120
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.