System Trash path

That path takes you to the user's trash, that I shared as my first path (users/dannywyatt). But the other path I shared (trashes/501) is for files deleted from my secondary internal disk. iCloud has its own trash as well.
So for example if you click the trash icon in the dock you get to the trash where ALL files are stored, but if you have a file in iCloud and trash it and then go to ~/.Trash the file won't be there, only if you click the trash icon in the dock. The same for a file I trash from my secondary disk.

I worked on a macro and I noticed that I had to include 3 different trash paths to get all files to move