use hardlinks for files and symlinks for directories