summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge')
-rwxr-xr-xkpov_judge/test_prepare_disks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kpov_judge/test_prepare_disks.py b/kpov_judge/test_prepare_disks.py
index a03bb0c..7564d6d 100755
--- a/kpov_judge/test_prepare_disks.py
+++ b/kpov_judge/test_prepare_disks.py
@@ -84,8 +84,7 @@ class SSHGuestFs:
def mv (self, src, dest):
self.conn.exec_command('mv "{}" "{}"'.format(src, dest))
def mkdir (self, path):
- sftp_client = self.conn.open_sftp()
- sftp_client.mkdir(path)
+ self.conn.exec_command('mkdir -p "{}"'.format(path))
def read_file (self, path):
sftp_client = self.conn.open_sftp()
f = sftp_client.file(path, mode='r', bufsize=-1)