import subprocess

def fileExistsRemote(host, file):
    """Does this file exist on this host?"""
    return subprocess.call(['ssh',host,'test -e '+file]) == 0

def createRemoteFolder(host, folder):
    """ create this folder on this indicated host """
    return subprocess.call(['ssh',host,'mkdir -p '+folder]) == 0
