Вопрос

As a better definition, how to write the following function in Python ?

def create_shortcut(source, dest):
    create a shortcut of file 'source' and put it in 'dest'
Это было полезно?

Решение

If by "shortcut" you mean symlink, it's just

import os

os.symlink(source,dest)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top