Fixed the problem when moving files outside of the parent directory to the trash directory.