def addPathDeps(self, path, dirpath, pkgFiles):
        # Because paths can change, individual files do not provide their
        # paths.  However, within a trove, a file does provide its name.
        # Furthermore, non-regular files can be path dependency targets
        # Therefore, we have to handle this case a bit differently.
        for pkg, f  in pkgFiles:
            if dirpath in self.binDirs and not isinstance(f, files.Directory):
                # CNY-930: automatically export paths in bindirs
                # CNY-1721: but not directories in bindirs
                f.flags.isPathDependencyTarget(True)

            if f.flags.isPathDependencyTarget():
                pkg.provides.addDep(deps.FileDependencies, deps.Dependency(path))