code: def mkdirs(remote_dir, use_sudo=False):
      
      func = use_sudo and sudo or run
      result = func(' '.join(['mkdir -pv',remote_dir])).split('\n')
      #extract dir list from ["mkdir: created directory `example.com/some/dir'"]
      if result[0]: result = [dir.split(' ')[3][1:-1] for dir in result if dir]
      return result
docs: Wrapper around mkdir -pv
      
      Returns a list of directories created