Comments (3)
It's not relative but the recursive functions whether put_d()
or put_r()
will maintain the directory structure of the localdir
parameter and its contents. Your expectations are not quite right but it should not include the parent portion of the localdir path in the remote. To be clear of the expectations using your example:
put_d remotepath
inbox/test/file1.txt
inbox/test/file2.txt
The PR I've attached should fix this. Can you confirm when you get a chance?
from sftpretty.
Thank you for the prompt fixed and the clarification. I have checked it just now, got an issue in creating the remote path directories. In terms of expected result, I was expecting a more predicted and naive way which is, in my opinion whatever files in a locadir
, will be in remotedir
, ignoring the parents or the stem. So no hidden functionalities that it will create a stem folder in remote. Then when stem and parent become important, put_r
will do the job. But I can still work with this approach by naming my localdir to be the same name with the remotedir.
from sftpretty.
@byteskeptical (wave)
from sftpretty.
Related Issues (19)
- put_d() unexpected remote path handling and issue with absolute Windows paths HOT 9
- calling basicConfig at this level for a library that should be embedded changes all dowstream logs HOT 1
- Need less logging HOT 4
- Windows: No hostkey for host [localhost] found. HOT 16
- AttributeError: str object has no attribute root for put_d in localdir.root HOT 1
- Windows: No hostkey for host [localhost] found - Part 2 HOT 1
- Put_d has issue in creating remote directory HOT 1
- get_r copies remote folder structure into localdir HOT 3
- ChannelException while using get_r HOT 2
- Connection duplicated HOT 2
- Doesn't use SSH config file. HOT 8
- Can't catch IOError when retry is enabled during uploading a file HOT 2
- Feature Request: able to set max workers for any ThreadPoolExecutor HOT 1
- sftpretty adding console log to root logger HOT 2
- when knowhosts directory doesn't exist. it will keep throwing FileNotFoundError regardless we set hostkeys=None HOT 3
- paramiko.ssh_exception.SSHException: No hostkey for host [] found. HOT 2
- pysftp walktree method missing for drop in replacement HOT 2
- Typo in argument name - tires/tries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sftpretty.