Browse Source

sftp mkdir

master
Jeong Geol Kim 4 years ago
parent
commit
bcf0999c6b
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      auto_extract.py

+ 1
- 2
auto_extract.py View File

@@ -75,9 +75,8 @@ def main():
75 75
                     sftp = paramiko.SFTPClient.from_transport(transport)
76 76
                     #FIXME: send file recursively
77 77
                     full_list = glob.glob(id + "/*")
78
+                    sftp.mkdir('/data/'+full_list[0][5:22])
78 79
                     for f in full_list:
79
-                        print(f)
80
-                        print(f[5:])
81 80
                         sftp.put(f,'/data/'+str(f[5:]))
82 81
                     sftp.close()
83 82
                     transport.close()      

Loading…
Cancel
Save