示例#1
0
文件: remote.py 项目: coocoky/scipion
 def makedirs(self, remoteFolder):
     """ Like os.makedirs remotely. """
     if len(remoteFolder) and not self.exists(remoteFolder):
         log.info('RemotePath.makedirs, path: %s' % remoteFolder)
         parent = dirname(remoteFolder)
         # if have parent and it doen't exist, create it recursively
         if len(parent) and not self.exists(parent):
             self.makedirs(parent)
         self.sftp.mkdir(remoteFolder)
示例#2
0
 def makedirs(self, remoteFolder):
     """ Like os.makedirs remotely. """
     if len(remoteFolder) and not self.exists(remoteFolder):
         log.info('RemotePath.makedirs, path: %s' % remoteFolder)
         parent = dirname(remoteFolder)
         # if have parent and it doen't exist, create it recursively
         if len(parent) and not self.exists(parent):
             self.makedirs(parent)
         self.sftp.mkdir(remoteFolder)
示例#3
0
文件: remote.py 项目: coocoky/scipion
 def makeFilePath(self, *remoteFiles):
     """ Create the remote folder path for remoteFiles. """
     self.makePath(*[dirname(r) for r in remoteFiles])
示例#4
0
 def makeFilePath(self, *remoteFiles):
     """ Create the remote folder path for remoteFiles. """
     self.makePath(*[dirname(r) for r in remoteFiles])