conan.tools.files.symlinks¶
conan.tools.files.symlinks.absolute_to_relative_symlinks()¶
Available since: 1.44.0
def absolute_to_relative_symlinks(conanfile, base_folder):
Convert the symlinks with absolute paths into relative ones if they are pointing to a file or directory inside the ‘base_folder’. Any absolute symlink pointing outside the ‘base_folder’ will be ignored.
Parameters:
- base_folder: Folder to be scanned.