conan.tools.files.symlinksο
conan.tools.files.symlinks.absolute_to_relative_symlinks()ο
- 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 thebase_folderwill be ignored.- Parameters:
conanfile β The current recipe object. Always use
self.base_folder β Folder to be scanned.
conan.tools.files.symlinks.remove_external_symlinks()ο
- remove_external_symlinks(conanfile, base_folder)ο
Remove the symlinks to files that point outside the
base_folder, no matter if relative or absolute.- Parameters:
conanfile β The current recipe object. Always use
self.base_folder β Folder to be scanned.
conan.tools.files.symlinks.remove_broken_symlinks()ο
- remove_broken_symlinks(conanfile, base_folder=None)ο
Remove the broken symlinks, no matter if relative or absolute.
- Parameters:
conanfile β The current recipe object. Always use
self.base_folder β Folder to be scanned.