How to mount and unmount a folder with sshfs and Python Subprocess?
How to mount and unmount a folder with sshfs and Python Subprocess? Question: I want to be able to mount and then unmount a directory calling sshfs from the Python subproccess module. Here is the code I am using to accomplish this. import subprocess mkdir_command = ‘mkdir {}’.format(local_data_directory) unmount_command = ‘umount {}’.format(local_data_directory) mount_command = ‘sshfs …
Total answers: 2