@property
    def sftp(self):
        if not hasattr(self, '_sftp'):
            self._connect()
        return self._sftp
This method will return the package name and resource name from a path.
dataset/ETHPy150Open jschneier/django-storages/storages/backends/sftpstorage.py/SFTPStorage.sftp--crossover with--dataset/ETHPy150Open chrisbreiding/ASCIIPresentation/lib/package_resources.py/get_package_and_resource_name