When downloading a file from a tracker in a P2P system peers announce that they are participating in sharing a particular file or set of files.
The tracker doesn't need to know where that file is on the remote peer, just that it has it.
When a peer contacts the tracker it is told what other peers have access to the file. The peer can then ask other peers "tracker said you have a file I want, what parts do you have?"
From there it's just downloading blocks of files from each other. A peer doesn't need to know the exact location on a remote system, it just works on a file ID and block numbers and it is up to the remote peer to keep track of the file and blocks.
If you move a file out of your download area and/or stop sharing it then your local P2P software can no longer share it because it has no idea where you moved it to.