Skip to content

Commit 2116491

Browse files
authored
Merge pull request #26 from pyiron/delte_file_on_remote
Delete file on remote
2 parents be32bfe + 287e6e0 commit 2116491

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pysqa/remote.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, config, directory="~/.queues"):
2020
self._ssh_remote_config_dir = config['ssh_remote_config_dir']
2121
self._ssh_remote_path = config['ssh_remote_path']
2222
self._ssh_local_path = os.path.abspath(os.path.expanduser(config['ssh_local_path']))
23+
self._ssh_delete_file_on_remote = config['ssh_delete_file_on_remote']
2324
if 'ssh_port' in config.keys():
2425
self._ssh_port = config['ssh_port']
2526
else:
@@ -31,6 +32,10 @@ def __init__(self, config, directory="~/.queues"):
3132
self._ssh_connection = None
3233
self._remote_flag = True
3334

35+
@property
36+
def ssh_delete_file_on_remote(self):
37+
return self._ssh_delete_file_on_remote
38+
3439
def convert_path_to_remote(self, path):
3540
working_directory = os.path.abspath(os.path.expanduser(path))
3641
return self._get_remote_working_dir(

0 commit comments

Comments
 (0)