Pass a path.Join function