Skip to content

Commit

Permalink
update sshfs_mounter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
talosh committed Jan 4, 2023
1 parent 549348d commit 753a5c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sshfs_mounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ def get_config_data(config_folder_path):
for remote_folder in remote_folders.keys():
try:
cmd = 'mkdir -p "' + os.path.join(local_location, remote_folder) + '"'
os.system(cmd)
print (cmd)
# os.system(cmd)
cmd = 'sshfs ' + location.get('user@machine') + ':"'
cmd += os.path.join(remote_folders.get(remote_folder), remote_folder) + '" '
cmd += '"' + os.path.join(local_location, remote_folder) + '" '
cmd += '-o ' + mount_options
cmd += ' 2>/dev/null'
os.system(cmd)
# os.system(cmd)
except:
pass

Expand Down

0 comments on commit 753a5c7

Please sign in to comment.