nam
nam

Reputation: 3632

Copy folder with specific extension with fabric

I want to copy all a folder to the remote machine with fabric, normally I can use the function put, But I just want to copy python files in the folder and not .pyc files, so how can I process? Thanks

Upvotes: 2

Views: 249

Answers (1)

Voislav Sauca
Voislav Sauca

Reputation: 3075

For remote mode you can retrieve only the .py files by putting:

find /some/path -name '*.py'

Upvotes: 1

Related Questions