Skip to main content

Creates symlinks and all folders in the symlink path if they don't exist

Project description

Creates symlinks and all folders in the symlink path if they don't exist

# You don't have to worry about creating the folder(s).
# If the folder and subfolders don't exist, they will be created.
# If a symlink already exists at the given path, it will be overwritten.
# If something goes wrong, the function returns False
# If everything is fine, it returns True

from easy_symlink import create_symlink

pp = create_symlink(
    r"C:\pictest4\1671814710.650013.png",
    "f:\\aaaaaaaafolder1\\folder2\\folder3\\folder4\\img.png",
)
print(pp)
True

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_symlink-0.10.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

easy_symlink-0.10-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page