It seems this strpos test would by true even if the path section appears in the middle of the path ?
For example: /test/files_trash/somesubdir/__test/files__/myfile.txt (where "test" is the user name)