Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
upload_project fails #1574
I am simply trying to copy a directory from my local machine to a virtual machine using fabric.contrib.project.upload_project feature.
my environment is:
here is the directory structure :
upload_project_test.py contains the following code
this will fail because .local dir is hidden.
it will work properly if '.local_dir; is not hidden, such as 'local_dir'
Seems to handle hidden directories for me:
In your original report, you did specify an absolute path, but you did not specify the correct folder name.
In fact, an absolute path is not needed, just any path with more than a single component (meaning, with a slash). This works:
from fabric.api import env, task, run, puts from fabric.contrib.project import upload_project @task def test(): upload_project("./.local_dir", "/tmp", use_sudo=True)