I’m assuming with a call to a UNIX shell, but I was wondering if there are other options from within Python.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My guess would also be that it is a permission problem. For me (OS X 10.7.3), this works:
And just to make it clear, “Hard links may not normally refer to directories and may not span file systems.”
This is because hard linking a directory could create an infinite loop. So directories need to be created using os.mkdir. Then files can be hard linked into that new directory.