mercredi 24 mai 2017

Is there a vim.Folder for PowerShell?

Through my understanding, the vim.Folder (type?) is available for use in Python, but I need it for PowerShell. I am converting script, and there is an 'if' condition on whether a folder passed in the parameter is a vim.Folder .

    -----PowerShell Script-------

if($folder -isnot $someEquivalent){
    return Error
}

    -----Python Script-----------

if not isinstance(folder,vim.Folder):
    raise TypeError("Blah")

Aucun commentaire:

Enregistrer un commentaire