Comments (4)
recursive=True
didn't work?
from scp.py.
It's also invalid for me to sync local directory to remote directory with the following code:
if not os.path.isdir(local_dir):
return
self.scp.put(
local_dir,
recursive=True,
remote_path=os.path.join(self.remote_dir, local_dir)
)
it's so simple, but not work for me.
from scp.py.
What are the parameters? In what way does it not work?
The CI tests this so I really think it works:
Lines 272 to 275 in f0cc100
from scp.py.
All of parameters is shown above. But I can give you the exception error message:
self.scp.put(
File "/Users/mcat/miniforge3/envs/torch/lib/python3.8/site-packages/scp.py", line 183, in put
self._send_recursive(files)
File "/Users/mcat/miniforge3/envs/torch/lib/python3.8/site-packages/scp.py", line 350, in _send_recursive
self._send_files([os.path.join(root, f) for f in fls])
File "/Users/mcat/miniforge3/envs/torch/lib/python3.8/site-packages/scp.py", line 292, in _send_files
self._send_file(fl, name, mode, size)
File "/Users/mcat/miniforge3/envs/torch/lib/python3.8/site-packages/scp.py", line 302, in _send_file
self._recv_confirm()
File "/Users/mcat/miniforge3/envs/torch/lib/python3.8/site-packages/scp.py", line 386, in _recv_confirm
raise SCPException(asunicode(msg[1:]))
scp.SCPException: scp: /Users/mcat/Code/lab/few-shot/prompt/src/: No such file or directory
Hope that it can help you find the problem.
from scp.py.
Related Issues (20)
- Support streams HOT 3
- exlude some files HOT 1
- remote delete Files after successfully download HOT 1
- Freebsd (Juniper Junos) not happy with extra space in Secure Copy get HOT 2
- Creating directories HOT 1
- paramiko.ssh_exception.SSHException: Incompatible ssh peer (no acceptable host key) on all tests HOT 1
- Get data into file-like object - getfo HOT 1
- scp does not work with pathlib.PurePath HOT 1
- How do I download multiple files at the same time?
- Permission denied with .put() HOT 10
- Remote wildcard does not work HOT 2
- File not closed in case SocketTimeout occured
- Pass progress callback when calling get/put methods on SCPClient HOT 3
- Retrieve scp errors HOT 6
- add support when both source and target are from remote locations (not necessary the same server)
- Add support for get() to keep downloaded file in memory via a BytesIO object as the "local_file" HOT 1
- Request for enhancement support to download all regular file in case of there is non-regular file under one folder HOT 3
- Using a trailing forward slash in Windows causes problems
- New Release? HOT 1
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 scp.py.