Here are the examples of the python api pysftpserver.virtualchroot.SFTPServerVirtualChroot taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: pysftpserver Source File: test_server_chroot.py
def setUp(self):
os.chdir(t_path())
self.home = 'home'
if not os.path.isdir(self.home):
os.mkdir(self.home)
self.server = SFTPServer(
SFTPServerVirtualChroot(self.home),
logfile=t_path('log'),
raise_on_error=True
)