Skip to content

Commit

Permalink
Trasnport : ssh : copy(some.directory,recursive=False) is not an option
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Jun 20, 2024
1 parent c2ca642 commit ffd7809
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/aiida/transports/plugins/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,11 +1118,13 @@ def copy(self, remotesource, remotedestination, dereference=False, recursive=Tru
Flags used: ``-r``: recursive copy; ``-f``: force, makes the command non interactive;
``-L`` follows symbolic links
:param remotesource: file to copy from
:param remotesource: file to copy from
:param remotedestination: file to copy to
:param dereference: if True, copy content instead of copying the symlinks only
Default = False.
:param recursive: if True copy directories recursively, otherwise only copy the specified file(s)
:param recursive: if True copy directories recursively.
Note that if the `remotesource` is a directory, `recursive` should always be set to True.
Default = True.
:type recursive: bool
:raise OSError: if the cp execution failed.
Expand Down

1 comment on commit ffd7809

@khsrali
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry,... It was a mistake wanted to push to my fork, but since I've changed upstream before, it went directly to aiidateam/aiida-core. Didn't mean to.
But since it's already done and it's a tiny change... anyways feel free to reset the HEAD though, Sorry again.

Please sign in to comment.