title: SFTP methods in python to get basename and full path for files
body: <p>I want to download files from an SFTP site in Python, but I want to apply filter to the files first, eg. only download files that fit a certain pattern. I only want to apply the filter to the file name, and not the full path. But when I want to download the file, I need the full path. Is there an easy way to do this?</p>