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
sftp.get() fails on files containing '%' when local_is_path is true. #711
The path interpolation done in sftp.py on line 118 causes the get() call to break if the filename contains the format string operator (%).
Here's an easy way to reproduce the issue:
def test_case(): run('mkdir -p /tmp/interpolation_test') run('touch /tmp/interpolation_test/%f.txt') get('/tmp/interpolation_test', '/tmp')